Index: applications/order/template/entry/AdditionalPartyListing.ftl
===================================================================
--- applications/order/template/entry/AdditionalPartyListing.ftl	(revision 1801264)
+++ applications/order/template/entry/AdditionalPartyListing.ftl	(working copy)
@@ -37,7 +37,7 @@
               <td><div>${party}</div></td>
               <td>
                 <div>
-                  <#if partyData[party].type == "person">
+                  <#if "person" == partyData[party].type>
                     ${partyData[party].firstName!}
                   <#else>
                     ${partyData[party].groupName!}
@@ -46,7 +46,7 @@
               </td>
               <td>
                 <div>
-                  <#if partyData[party].type == "person">
+                  <#if "person" == partyData[party].type>
                     ${partyData[party].lastName!}
                   </#if>
                 </div>
Index: applications/order/template/entry/BillSettings.ftl
===================================================================
--- applications/order/template/entry/BillSettings.ftl	(revision 1801264)
+++ applications/order/template/entry/BillSettings.ftl	(working copy)
@@ -78,7 +78,7 @@
               <tr>
                 <td>
                   <label for="checkOutPaymentId_EXT_OFFLINE">
-                  <input type="radio" id="checkOutPaymentId_EXT_OFFLINE" name="checkOutPaymentId" value="EXT_OFFLINE" <#if checkOutPaymentId?? && checkOutPaymentId == "EXT_OFFLINE">checked="checked"</#if>/>
+                  <input type="radio" id="checkOutPaymentId_EXT_OFFLINE" name="checkOutPaymentId" value="EXT_OFFLINE" <#if checkOutPaymentId?? && "EXT_OFFLINE" == checkOutPaymentId>checked="checked"</#if>/>
                   ${uiLabelMap.OrderPaymentOfflineCheckMoney}</label>
                 </td>
               </tr>
@@ -86,7 +86,7 @@
               <tr>
                 <td>
                   <label for="checkOutPaymentId_EXT_COD">
-                  <input type="radio" id="checkOutPaymentId_EXT_COD" name="checkOutPaymentId" value="EXT_COD" <#if checkOutPaymentId?? && checkOutPaymentId == "EXT_COD">checked="checked"</#if>/>
+                  <input type="radio" id="checkOutPaymentId_EXT_COD" name="checkOutPaymentId" value="EXT_COD" <#if checkOutPaymentId?? && "EXT_COD" == checkOutPaymentId>checked="checked"</#if>/>
                   ${uiLabelMap.OrderCOD}</label>
                 </td>
               </tr>
@@ -93,7 +93,7 @@
              <tr><td colspan="3"><hr /></td></tr>
               <#if paymentMethodList?has_content>
                 <#list paymentMethodList as paymentMethod>
-                  <#if paymentMethod.paymentMethodTypeId == "CREDIT_CARD">
+                  <#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId>
                     <#assign creditCard = paymentMethod.getRelatedOne("CreditCard", false)>
                     <tr>
                       <td>
@@ -108,7 +108,7 @@
                       </td>
                       <td align="right"><a href="/partymgr/control/editcreditcard?party_id=${orderParty.partyId}&amp;paymentMethodId=${paymentMethod.paymentMethodId}" target="_blank" class="buttontext">${uiLabelMap.CommonUpdate}</a></td>
                     </tr>
-                  <#elseif paymentMethod.paymentMethodTypeId == "EFT_ACCOUNT">
+                  <#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId>
                     <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount", false)>
                     <tr>
                       <td>
@@ -128,9 +128,9 @@
               </#if>
             </table>
           </form>
-        <#elseif paymentMethodType?? || finalizeMode?default("") == "payment">
+        <#elseif paymentMethodType?? || "payment" == finalizeMode?default("")>
           <#-- after initial screen; show detailed screens for selected type -->
-          <#if paymentMethodType == "CC">
+          <#if "CC" == paymentMethodType>
             <#if postalAddress?has_content>
               <form method="post" action="<@ofbizUrl>updateCreditCardAndPostalAddress</@ofbizUrl>" name="checkoutsetupform">
                 <input type="hidden" name="paymentMethodId" value="${creditCard.paymentMethodId!}"/>
@@ -141,7 +141,7 @@
               <form method="post" action="<@ofbizUrl>createCreditCardAndPostalAddress</@ofbizUrl>" name="checkoutsetupform">
             </#if>
           </#if>
-          <#if paymentMethodType == "EFT">
+          <#if "EFT" == paymentMethodType>
             <#if postalAddress?has_content>
               <form method="post" action="<@ofbizUrl>updateEftAndPostalAddress</@ofbizUrl>" name="checkoutsetupform">
                 <input type="hidden" name="paymentMethodId" value="${eftAccount.paymentMethodId!}"/>
@@ -260,7 +260,7 @@
             </tr>
 
             <#-- credit card fields -->
-            <#if paymentMethodType == "CC">
+            <#if "CC" == paymentMethodType>
               <#if !creditCard?has_content>
                 <#assign creditCard = requestParameters>
               </#if>
@@ -282,10 +282,10 @@
                 <td width="74%">
                   <select name="titleOnCard">
                     <option value="">${uiLabelMap.CommonSelectOne}</option>
-                    <option<#if ((creditCard.titleOnCard)?default("") == "Mr.")> checked="checked"</#if>>${uiLabelMap.CommonTitleMr}</option>
-                    <option<#if ((creditCard.titleOnCard)?default("") == "Mrs.")> checked="checked"</#if>>${uiLabelMap.CommonTitleMrs}</option>
-                    <option<#if ((creditCard.titleOnCard)?default("") == "Ms.")> checked="checked"</#if>>${uiLabelMap.CommonTitleMs}</option>
-                    <option<#if ((creditCard.titleOnCard)?default("") == "Dr.")> checked="checked"</#if>>${uiLabelMap.CommonTitleDr}</option>
+                    <option<#if ("Mr." == (creditCard.titleOnCard)?default(""))> checked="checked"</#if>>${uiLabelMap.CommonTitleMr}</option>
+                    <option<#if ("Mrs." == (creditCard.titleOnCard)?default(""))> checked="checked"</#if>>${uiLabelMap.CommonTitleMrs}</option>
+                    <option<#if ("Ms." == (creditCard.titleOnCard)?default(""))> checked="checked"</#if>>${uiLabelMap.CommonTitleMs}</option>
+                    <option<#if ("Dr." == (creditCard.titleOnCard)?default(""))> checked="checked"</#if>>${uiLabelMap.CommonTitleDr}</option>
                    </select>
                 </td>
               </tr>
@@ -316,13 +316,13 @@
                 <td width="74%">
                   <select name="suffixOnCard">
                     <option value="">${uiLabelMap.CommonSelectOne}</option>
-                    <option<#if ((creditCard.suffixOnCard)?default("") == "Jr.")> checked="checked"</#if>>Jr.</option>
-                    <option<#if ((creditCard.suffixOnCard)?default("") == "Sr.")> checked="checked"</#if>>Sr.</option>
-                    <option<#if ((creditCard.suffixOnCard)?default("") == "I")> checked="checked"</#if>>I</option>
-                    <option<#if ((creditCard.suffixOnCard)?default("") == "II")> checked="checked"</#if>>II</option>
-                    <option<#if ((creditCard.suffixOnCard)?default("") == "III")> checked="checked"</#if>>III</option>
-                    <option<#if ((creditCard.suffixOnCard)?default("") == "IV")> checked="checked"</#if>>IV</option>
-                    <option<#if ((creditCard.suffixOnCard)?default("") == "V")> checked="checked"</#if>>V</option>
+                    <option<#if ("Jr." == (creditCard.suffixOnCard)?default(""))> checked="checked"</#if>>Jr.</option>
+                    <option<#if ("Sr." == (creditCard.suffixOnCard)?default(""))> checked="checked"</#if>>Sr.</option>
+                    <option<#if ("I" == (creditCard.suffixOnCard)?default(""))> checked="checked"</#if>>I</option>
+                    <option<#if ("II" == (creditCard.suffixOnCard)?default(""))> checked="checked"</#if>>II</option>
+                    <option<#if ("III" == (creditCard.suffixOnCard)?default(""))> checked="checked"</#if>>III</option>
+                    <option<#if ("IV" == (creditCard.suffixOnCard)?default(""))> checked="checked"</#if>>IV</option>
+                    <option<#if ("V" == (creditCard.suffixOnCard)?default(""))> checked="checked"</#if>>V</option>
                   </select>
                 </td>
               </tr>
@@ -470,11 +470,11 @@
             <table width="100%" border="0" cellpadding="1" cellspacing="0">
               <#if "Y" != requestParameters.createNew?default("")>
               <tr>
-                <td nowrap="nowrap"><label><input type="radio" name="paymentMethodTypeAndId" value="EXT_OFFLINE" <#if checkOutPaymentId?? && checkOutPaymentId == "EXT_OFFLINE">checked="checked"</#if> onchange="setCheckoutPaymentId(this.value)" onclick="setCheckoutPaymentId(this.value)"/> ${uiLabelMap.OrderPaymentOfflineCheckMoney}</label></td>
+                <td nowrap="nowrap"><label><input type="radio" name="paymentMethodTypeAndId" value="EXT_OFFLINE" <#if checkOutPaymentId?? && "EXT_OFFLINE" == checkOutPaymentId>checked="checked"</#if> onchange="setCheckoutPaymentId(this.value)" onclick="setCheckoutPaymentId(this.value)"/> ${uiLabelMap.OrderPaymentOfflineCheckMoney}</label></td>
               </tr>
               <tr><td colspan="2"><hr /></td></tr>
               <tr>
-                <td width="1%" nowrap="nowrap"><label><input type="radio" name="paymentMethodTypeAndId" value="EXT_COD" <#if checkOutPaymentId?? && checkOutPaymentId == "EXT_COD">checked="checked"</#if> onchange="setCheckoutPaymentId(this.value)" onclick="setCheckoutPaymentId(this.value)"/> ${uiLabelMap.OrderCOD}</label></td>
+                <td width="1%" nowrap="nowrap"><label><input type="radio" name="paymentMethodTypeAndId" value="EXT_COD" <#if checkOutPaymentId?? && "EXT_COD" == checkOutPaymentId>checked="checked"</#if> onchange="setCheckoutPaymentId(this.value)" onclick="setCheckoutPaymentId(this.value)"/> ${uiLabelMap.OrderCOD}</label></td>
               </tr>
               <tr><td colspan="2"><hr /></td></tr>
               </#if>
Index: applications/order/template/entry/CheckInits.ftl
===================================================================
--- applications/order/template/entry/CheckInits.ftl	(revision 1801264)
+++ applications/order/template/entry/CheckInits.ftl	(working copy)
@@ -150,7 +150,7 @@
           <td>&nbsp;</td>
           <td valign='middle'>
             <div class='tabletext'>
-              <select name="billToCustomerPartyId"<#if sessionAttributes.orderMode?default("") == "SALES_ORDER"> disabled</#if>>
+              <select name="billToCustomerPartyId"<#if "SALES_ORDER" == sessionAttributes.orderMode?default("")> disabled</#if>>
                 <#list organizations as organization>
                   <#assign organizationName = Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(organization, true)/>
                     <#if (organizationName.length() != 0)>
@@ -178,7 +178,7 @@
           <td>&nbsp;</td>
           <td valign='middle'>
             <div class='tabletext'>
-              <select name="supplierPartyId"<#if sessionAttributes.orderMode?default("") == "SALES_ORDER"> disabled</#if>>
+              <select name="supplierPartyId"<#if "SALES_ORDER" == sessionAttributes.orderMode?default("")> disabled</#if>>
                 <option value="">${uiLabelMap.OrderSelectSupplier}</option>
                 <#list suppliers as supplier>
                   <option value="${supplier.partyId}"<#if supplier.partyId == thisPartyId> selected="selected"</#if>>[${supplier.partyId}] - ${Static["org.apache.ofbiz.party.party.PartyHelper"].getPartyName(supplier, true)}</option>
Index: applications/order/template/entry/CheckoutOptions.ftl
===================================================================
--- applications/order/template/entry/CheckoutOptions.ftl	(revision 1801264)
+++ applications/order/template/entry/CheckoutOptions.ftl	(working copy)
@@ -20,51 +20,51 @@
 <script type="text/javascript">
 //<![CDATA[
 function submitForm(form, mode, value) {
-    if (mode == "DN") {
+    if ("DN" == mode) {
         // done action; checkout
         form.action="<@ofbizUrl>checkout</@ofbizUrl>";
         form.submit();
-    } else if (mode == "CS") {
+    } else if ("CS" == mode) {
         // continue shopping
         form.action="<@ofbizUrl>updateCheckoutOptions/showcart</@ofbizUrl>";
         form.submit();
-    } else if (mode == "NA") {
+    } else if ("NA" == mode) {
         // new address
         form.action="<@ofbizUrl>updateCheckoutOptions/editcontactmech?DONE_PAGE=quickcheckout&partyId=${shoppingCart.getPartyId()}&preContactMechTypeId=POSTAL_ADDRESS&contactMechPurposeTypeId=SHIPPING_LOCATION</@ofbizUrl>";
         form.submit();
-    } else if (mode == "EA") {
+    } else if ("EA" == mode) {
         // edit address
         form.action="<@ofbizUrl>updateCheckoutOptions/editcontactmech?DONE_PAGE=quickcheckout&partyId=${shoppingCart.getPartyId()}&contactMechId="+value+"</@ofbizUrl>";
         form.submit();
-    } else if (mode == "NC") {
+    } else if ("NC" == mode) {
         // new credit card
         form.action="<@ofbizUrl>updateCheckoutOptions/editcreditcard?DONE_PAGE=quickcheckout&partyId=${shoppingCart.getPartyId()}</@ofbizUrl>";
         form.submit();
-    } else if (mode == "EC") {
+    } else if ("EC" == mode) {
         // edit credit card
         form.action="<@ofbizUrl>updateCheckoutOptions/editcreditcard?DONE_PAGE=quickcheckout&partyId=${shoppingCart.getPartyId()}&paymentMethodId="+value+"</@ofbizUrl>";
         form.submit();
-    } else if (mode == "GC") {
+    } else if ("GC" == mode) {
         // edit gift card
         form.action="<@ofbizUrl>updateCheckoutOptions/editgiftcard?DONE_PAGE=quickcheckout&partyId=${shoppingCart.getPartyId()}&paymentMethodId="+value+"</@ofbizUrl>";
         form.submit();
-    } else if (mode == "NE") {
+    } else if ("NE" == mode) {
         // new eft account
         form.action="<@ofbizUrl>updateCheckoutOptions/editeftaccount?DONE_PAGE=quickcheckout&partyId=${shoppingCart.getPartyId()}</@ofbizUrl>";
         form.submit();
-    } else if (mode == "EE") {
+    } else if ("EE" == mode) {
         // edit eft account
         form.action="<@ofbizUrl>updateCheckoutOptions/editeftaccount?DONE_PAGE=quickcheckout&partyId=${shoppingCart.getPartyId()}&paymentMethodId="+value+"</@ofbizUrl>";
         form.submit();
-    } else if (mode == "SP") {
+    } else if ("SP" == mode) {
         // split payment
         form.action="<@ofbizUrl>updateCheckoutOptions/checkoutpayment?partyId=${shoppingCart.getPartyId()}</@ofbizUrl>";
         form.submit();
-    } else if (mode == "SA") {
+    } else if ("SA" == mode) {
         // selected shipping address
         form.action="<@ofbizUrl>updateCheckoutOptions/quickcheckout</@ofbizUrl>";
         form.submit();
-    } else if (mode == "SC") {
+    } else if ("SC" == mode) {
         // selected ship to party
         form.action="<@ofbizUrl>cartUpdateShipToCustomerParty</@ofbizUrl>";
         form.submit();
@@ -199,7 +199,7 @@
                   <tr>
                     <td valign="top">
                     <label>
-                      <input type="radio" <#if shoppingCart.getMaySplit()?default("N") == "N">checked="checked"</#if> name="may_split" value="false"/>
+                      <input type="radio" <#if "N" == shoppingCart.getMaySplit()?default("N")>checked="checked"</#if> name="may_split" value="false"/>
                       ${uiLabelMap.OrderPleaseWaitUntilBeforeShipping}.
                     </label>
                     </td>
@@ -207,7 +207,7 @@
                   <tr>
                     <td valign="top">
                     <label>
-                      <input <#if shoppingCart.getMaySplit()?default("N") == "Y">checked="checked"</#if> type="radio" name="may_split" value="true"/>
+                      <input <#if "Y" == shoppingCart.getMaySplit()?default("N")>checked="checked"</#if> type="radio" name="may_split" value="true"/>
                       ${uiLabelMap.OrderPleaseShipItemsBecomeAvailable}.
                     </label>
                     </td>
@@ -235,8 +235,8 @@
                     <td colspan="2">
                       <div>
                         <span class="h2"><b>${uiLabelMap.OrderIsThisGift}</b></span>
-                        <label><input type="radio" <#if shoppingCart.getIsGift()?default("Y") == "Y">checked="checked"</#if> name="is_gift" value="true"><span>${uiLabelMap.CommonYes}</span></label>
-                        <label><input type="radio" <#if shoppingCart.getIsGift()?default("N") == "N">checked="checked"</#if> name="is_gift" value="false"><span>${uiLabelMap.CommonNo}</span></label>
+                        <label><input type="radio" <#if "Y" == shoppingCart.getIsGift()?default("Y")>checked="checked"</#if> name="is_gift" value="true"><span>${uiLabelMap.CommonYes}</span></label>
+                        <label><input type="radio" <#if "N" == shoppingCart.getIsGift()?default("Y")>checked="checked"</#if> name="is_gift" value="false"><span>${uiLabelMap.CommonNo}</span></label>
                       </div>
                     </td>
                   </tr>
@@ -375,7 +375,7 @@
                     </#if>
                   <#else>
                   <#list paymentMethodList as paymentMethod>
-                    <#if paymentMethod.paymentMethodTypeId == "CREDIT_CARD">
+                    <#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId>
                      <#if productStorePaymentMethodTypeIdMap.CREDIT_CARD??>
                       <#assign creditCard = paymentMethod.getRelatedOne("CreditCard", false)>
                       <tr>
@@ -390,7 +390,7 @@
                         </td>
                       </tr>
                      </#if>
-                    <#elseif paymentMethod.paymentMethodTypeId == "EFT_ACCOUNT">
+                    <#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId>
                      <#if productStorePaymentMethodTypeIdMap.EFT_ACCOUNT??>
                       <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount", false)>
                       <tr>
@@ -404,7 +404,7 @@
                         </td>
                       </tr>
                      </#if>
-                    <#elseif paymentMethod.paymentMethodTypeId == "GIFT_CARD">
+                    <#elseif "GIFT_CARD" == paymentMethod.paymentMethodTypeId>
                      <#if productStorePaymentMethodTypeIdMap.GIFT_CARD??>
                       <#assign giftCard = paymentMethod.getRelatedOne("GiftCard", false)>
 
Index: applications/order/template/entry/CheckoutPayment.ftl
===================================================================
--- applications/order/template/entry/CheckoutPayment.ftl	(revision 1801264)
+++ applications/order/template/entry/CheckoutPayment.ftl	(working copy)
@@ -22,31 +22,31 @@
 <script type="text/javascript">
 //<![CDATA[
 function submitForm(form, mode, value) {
-    if (mode == "DN") {
+    if ("DN" == mode) {
         // done action; checkout
         form.action="<@ofbizUrl>checkoutoptions</@ofbizUrl>";
         form.submit();
-    } else if (mode == "CS") {
+    } else if ("CS" == mode) {
         // continue shopping
         form.action="<@ofbizUrl>updateCheckoutOptions/showcart</@ofbizUrl>";
         form.submit();
-    } else if (mode == "NC") {
+    } else if ("NC" == mode) {
         // new credit card
         form.action="<@ofbizUrl>updateCheckoutOptions/editcreditcard?DONE_PAGE=checkoutpayment</@ofbizUrl>";
         form.submit();
-    } else if (mode == "EC") {
+    } else if ("EC" == mode) {
         // edit credit card
         form.action="<@ofbizUrl>updateCheckoutOptions/editcreditcard?DONE_PAGE=checkoutpayment&paymentMethodId="+value+"</@ofbizUrl>";
         form.submit();
-    } else if (mode == "GC") {
+    } else if ("GC" == mode) {
         // edit gift card
         form.action="<@ofbizUrl>updateCheckoutOptions/editgiftcard?paymentMethodId="+value+"</@ofbizUrl>";
         form.submit();
-    } else if (mode == "NE") {
+    } else if ("NE" == mode) {
         // new eft account
         form.action="<@ofbizUrl>updateCheckoutOptions/editeftaccount?DONE_PAGE=checkoutpayment</@ofbizUrl>";
         form.submit();
-    } else if (mode == "EE") {
+    } else if ("EE" == mode) {
         // edit eft account
         form.action="<@ofbizUrl>updateCheckoutOptions/editeftaccount?DONE_PAGE=checkoutpayment&paymentMethodId="+value+"</@ofbizUrl>";
         form.submit();
@@ -159,7 +159,7 @@
               </div>
             <#else>
               <#list paymentMethodList as paymentMethod>
-                <#if paymentMethod.paymentMethodTypeId == "GIFT_CARD">
+                <#if "GIFT_CARD" == paymentMethod.paymentMethodTypeId>
                  <#if productStorePaymentMethodTypeIdMap.GIFT_CARD??>
                   <#assign giftCard = paymentMethod.getRelatedOne("GiftCard", false) />
 
@@ -187,7 +187,7 @@
                         <strong>${uiLabelMap.OrderBillUpTo}:</strong> <input type="text" size="5" class="inputBox" name="amount_${paymentMethod.paymentMethodId}" value="<#if (cart.getPaymentAmount(paymentMethod.paymentMethodId)?default(0) > 0)>${cart.getPaymentAmount(paymentMethod.paymentMethodId)?string("##0.00")}</#if>" />
                   </div>
                  </#if>
-                <#elseif paymentMethod.paymentMethodTypeId == "CREDIT_CARD">
+                <#elseif "CREDIT_CARD" == paymentMethod.paymentMethodTypeId>
                  <#if productStorePaymentMethodTypeIdMap.CREDIT_CARD??>
                   <#assign creditCard = paymentMethod.getRelatedOne("CreditCard", false) />
                   <div>
@@ -198,7 +198,7 @@
                         <label for="amount_${paymentMethod.paymentMethodId}"><strong>${uiLabelMap.OrderBillUpTo}:</strong></label><input type="text" size="5" class="inputBox" id="amount_${paymentMethod.paymentMethodId}" name="amount_${paymentMethod.paymentMethodId}" value="<#if (cart.getPaymentAmount(paymentMethod.paymentMethodId)?default(0) > 0)>${cart.getPaymentAmount(paymentMethod.paymentMethodId)?string("##0.00")}</#if>" />
                   </div>
                  </#if>
-                <#elseif paymentMethod.paymentMethodTypeId == "EFT_ACCOUNT">
+                <#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId>
                  <#if productStorePaymentMethodTypeIdMap.EFT_ACCOUNT??>
                   <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount", false) />
                   <div>
Index: applications/order/template/entry/CheckoutShippingAddress.ftl
===================================================================
--- applications/order/template/entry/CheckoutShippingAddress.ftl	(revision 1801264)
+++ applications/order/template/entry/CheckoutShippingAddress.ftl	(working copy)
@@ -20,19 +20,19 @@
 <script type="text/javascript">
 //<![CDATA[
 function submitForm(form, mode, value) {
-    if (mode == "DN") {
+    if ("DN" == mode) {
         // done action; checkout
         form.action="<@ofbizUrl>checkoutoptions</@ofbizUrl>";
         form.submit();
-    } else if (mode == "CS") {
+    } else if ("CS" == mode) {
         // continue shopping
         form.action="<@ofbizUrl>updateCheckoutOptions/showcart</@ofbizUrl>";
         form.submit();
-    } else if (mode == "NA") {
+    } else if ("NA" == mode) {
         // new address
         form.action="<@ofbizUrl>updateCheckoutOptions/editcontactmech?preContactMechTypeId=POSTAL_ADDRESS&contactMechPurposeTypeId=SHIPPING_LOCATION&DONE_PAGE=checkoutshippingaddress</@ofbizUrl>";
         form.submit();
-    } else if (mode == "EA") {
+    } else if ("EA" == mode) {
         // edit address
         form.action="<@ofbizUrl>updateCheckoutOptions/editcontactmech?DONE_PAGE=checkoutshippingaddress&contactMechId="+value+"</@ofbizUrl>";
         form.submit();
Index: applications/order/template/entry/CustSettings.ftl
===================================================================
--- applications/order/template/entry/CustSettings.ftl	(revision 1801264)
+++ applications/order/template/entry/CustSettings.ftl	(working copy)
@@ -74,8 +74,8 @@
                   &nbsp;ext&nbsp;<input type="text" name="homeExt" value="${requestParameters.homeExt!}" size="6" maxlength="10"/>
                   <br/>
                   <select name="homeSol">
-                    <#if (((requestParameters.homeSol)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
-                    <#if (((requestParameters.homeSol)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
+                    <#if ("Y" == ((requestParameters.homeSol)!""))><option value="Y">${uiLabelMap.CommonY}</option></#if>
+                    <#if ("N" == ((requestParameters.homeSol)!""))><option value="N">${uiLabelMap.CommonN}</option></#if>
                     <option></option>
                     <option value="Y">${uiLabelMap.CommonY}</option>
                     <option value="N">${uiLabelMap.CommonN}</option>
@@ -92,8 +92,8 @@
                   &nbsp;ext&nbsp;<input type="text" name="workExt" value="${requestParameters.CUSTOMER_WORK_EXT!}" size="6" maxlength="10"/>
                   <br/>
                   <select name="workSol">
-                    <#if (((requestParameters.workSol)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
-                    <#if (((requestParameters.workSol)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
+                    <#if ("Y" == ((requestParameters.workSol)!""))><option value="Y">${uiLabelMap.CommonY}</option></#if>
+                    <#if ("N" == ((requestParameters.workSol)!""))><option value="N">${uiLabelMap.CommonN}</option></#if>
                     <option></option>
                     <option value="Y">${uiLabelMap.CommonY}</option>
                     <option value="N">${uiLabelMap.CommonN}</option>
@@ -110,8 +110,8 @@
                   <input type="text" name="emailAddress" value="" size="60" maxlength="255" />
                   <br/>
                   <select name="emailSol">
-                    <#if (((requestParameters.emailSol)!"") == "Y")><option value="Y">${uiLabelMap.CommonY}</option></#if>
-                    <#if (((requestParameters.emailSol)!"") == "N")><option value="N">${uiLabelMap.CommonN}</option></#if>
+                    <#if ("Y" == ((requestParameters.emailSol)!""))><option value="Y">${uiLabelMap.CommonY}</option></#if>
+                    <#if ("N" == ((requestParameters.emailSol)!""))><option value="N">${uiLabelMap.CommonN}</option></#if>
                     <option></option>
                     <option value="Y">${uiLabelMap.CommonY}</option>
                     <option value="N">${uiLabelMap.CommonN}</option>
Index: applications/order/template/entry/CustomerTaxInfo.ftl
===================================================================
--- applications/order/template/entry/CustomerTaxInfo.ftl	(revision 1801264)
+++ applications/order/template/entry/CustomerTaxInfo.ftl	(working copy)
@@ -33,7 +33,7 @@
         </select>
         <span>${uiLabelMap.CommonId}: </span><input type="text" name="partyTaxId" size="12" maxlength="40"/>
 
-        <#if productStore.showTaxIsExempt?default("Y") == "Y">
+        <#if "Y" == productStore.showTaxIsExempt?default("Y")>
         <label><span>${uiLabelMap.PartyTaxIsExempt} </span><input type="checkbox" name="isExempt" value="Y"/></label>
         <#else>
         <input type="hidden" name="isExempt" value="N"/>
Index: applications/order/template/entry/OptionSettings.ftl
===================================================================
--- applications/order/template/entry/OptionSettings.ftl	(revision 1801264)
+++ applications/order/template/entry/OptionSettings.ftl	(working copy)
@@ -126,7 +126,7 @@
                 <tr>
                   <td valign="top">
                   <label>
-                    <input type='radio' <#if cart.getMaySplit(shipGroupIndex)?default("N") == "N">checked="checked"</#if> name='${shipGroupIndex?default("0")}_may_split' value='false' />
+                    <input type='radio' <#if "N" == cart.getMaySplit(shipGroupIndex)?default("N")>checked="checked"</#if> name='${shipGroupIndex?default("0")}_may_split' value='false' />
                     ${uiLabelMap.FacilityWaitEntireOrderReady}
                   </label>
                   </td>
@@ -134,7 +134,7 @@
                 <tr>
                   <td valign="top">
                     <label>
-                    <input <#if cart.getMaySplit(shipGroupIndex)?default("N") == "Y">checked="checked"</#if> type='radio' name='${shipGroupIndex?default("0")}_may_split' value='true' />
+                    <input <#if "Y" == cart.getMaySplit(shipGroupIndex)?default("N")>checked="checked"</#if> type='radio' name='${shipGroupIndex?default("0")}_may_split' value='true' />
                     ${uiLabelMap.FacilityShipAvailable}
                     </label>
                   </td>
Index: applications/order/template/entry/OrderAgreements.ftl
===================================================================
--- applications/order/template/entry/OrderAgreements.ftl	(revision 1801264)
+++ applications/order/template/entry/OrderAgreements.ftl	(working copy)
@@ -193,7 +193,7 @@
         </td>
       </tr>
 
-      <#if cart.getOrderType() == "PURCHASE_ORDER">
+      <#if "PURCHASE_ORDER" == cart.getOrderType()>
         <tr>
           <td>&nbsp;</td>
           <td align='right' valign='top'>
Index: applications/order/template/entry/OrderEntryCatalogTabBar.ftl
===================================================================
--- applications/order/template/entry/OrderEntryCatalogTabBar.ftl	(revision 1801264)
+++ applications/order/template/entry/OrderEntryCatalogTabBar.ftl	(working copy)
@@ -27,7 +27,7 @@
     <#else>
     <li class="h3">
         ${uiLabelMap.CommonCreate}&nbsp;
-        <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
+        <#if "PURCHASE_ORDER" == shoppingCart.getOrderType()>
             ${uiLabelMap.OrderPurchaseOrder}
         <#else>
             ${uiLabelMap.OrderSalesOrder}
Index: applications/order/template/entry/OrderEntryCheckOutTabBar.ftl
===================================================================
--- applications/order/template/entry/OrderEntryCheckOutTabBar.ftl	(revision 1801264)
+++ applications/order/template/entry/OrderEntryCheckOutTabBar.ftl	(working copy)
@@ -24,7 +24,7 @@
   <div class="screenlet-title-bar">
     <ul>
       <li class="h3">
-        <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
+        <#if "PURCHASE_ORDER" == shoppingCart.getOrderType()>
             ${uiLabelMap.OrderPurchaseOrder}
         <#else>
             ${uiLabelMap.OrderSalesOrder}
@@ -32,7 +32,7 @@
         :&nbsp;${stepTitle!}
       </li>
 
-      <#if isLastStep == "N">
+      <#if "N" == isLastStep>
         <li><a href="javascript:document.checkoutsetupform.submit();">${uiLabelMap.CommonContinue}</a></li>
       <#else>
         <li><a href="<@ofbizUrl>processorder</@ofbizUrl>">${uiLabelMap.OrderCreateOrder}</a></li>
@@ -40,7 +40,7 @@
 
       <#list checkoutSteps?reverse as checkoutStep>
         <#assign stepUiLabel = uiLabelMap.get(checkoutStep.label)>
-        <#if checkoutStep.enabled == "N">
+        <#if "N" == checkoutStep.enabled>
             <li><span class="disabled">${stepUiLabel}</span></li>
         <#else>
             <li><a href="<@ofbizUrl>${checkoutStep.uri}</@ofbizUrl>">${stepUiLabel}</a></li>
Index: applications/order/template/entry/OrderEntryTabBar.ftl
===================================================================
--- applications/order/template/entry/OrderEntryTabBar.ftl	(revision 1801264)
+++ applications/order/template/entry/OrderEntryTabBar.ftl	(working copy)
@@ -22,14 +22,14 @@
     <ul>
       <li class="h3">
         ${uiLabelMap.CommonCreate}&nbsp;
-        <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
+        <#if "PURCHASE_ORDER" == shoppingCart.getOrderType()>
             ${uiLabelMap.OrderPurchaseOrder}
         <#else>
             ${uiLabelMap.OrderSalesOrder}
         </#if>
       </li>
-      <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
-        <#if shoppingCart.getOrderPartyId() == "_NA_" || (shoppingCart.size() = 0)>
+      <#if "PURCHASE_ORDER" == shoppingCart.getOrderType()>
+        <#if "_NA_" == shoppingCart.getOrderPartyId() || (shoppingCart.size() = 0)>
           <li class="disabled">${uiLabelMap.OrderFinalizeOrder}</li>
         <#else>
           <li><a href="<@ofbizUrl>finalizeOrder?finalizeMode=purchase&amp;finalizeReqCustInfo=false&amp;finalizeReqShipInfo=false&amp;finalizeReqOptions=false&amp;finalizeReqPayInfo=false</@ofbizUrl>">${uiLabelMap.OrderFinalizeOrder}</a></li>
Index: applications/order/template/entry/OrderShortcuts.ftl
===================================================================
--- applications/order/template/entry/OrderShortcuts.ftl	(revision 1801264)
+++ applications/order/template/entry/OrderShortcuts.ftl	(working copy)
@@ -25,7 +25,7 @@
     </div>
     <div class="screenlet-body">
         <ul>
-            <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
+            <#if "PURCHASE_ORDER" == shoppingCart.getOrderType()>
               <li><a href="<@ofbizUrl>RequirementsForSupplier</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderRequirements}</a></li>
             </#if>
             <#if shoppingCart.getOrderType()?has_content && shoppingCart.items()?has_content>
@@ -32,11 +32,11 @@
               <li><a href="<@ofbizUrl>createQuoteFromCart?destroyCart=Y</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCreateQuoteFromCart}</a></li>
               <li><a href="<@ofbizUrl>FindQuoteForCart</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderOrderQuotes}</a></li>
             </#if>
-            <#if shoppingCart.getOrderType() == "SALES_ORDER">
+            <#if "SALES_ORDER" == shoppingCart.getOrderType()>
               <li><a href="<@ofbizUrl>createCustRequestFromCart?destroyCart=Y</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCreateCustRequestFromCart}</a></li>
             </#if>
             <li><a href="/partymgr/control/findparty?${externalKeyParam!}" class="buttontext">${uiLabelMap.PartyFindParty}</a></li>
-            <#if shoppingCart.getOrderType() == "SALES_ORDER">
+            <#if "SALES_ORDER" == shoppingCart.getOrderType()>
               <li><a href="<@ofbizUrl>setCustomer</@ofbizUrl>" class="buttontext">${uiLabelMap.PartyCreateNewCustomer}</a></li>
             </#if>
             <li><a href="<@ofbizUrl>checkinits</@ofbizUrl>" class="buttontext">${uiLabelMap.PartyChangeParty}</a></li>
Index: applications/order/template/entry/SetAdditionalParty.ftl
===================================================================
--- applications/order/template/entry/SetAdditionalParty.ftl	(revision 1801264)
+++ applications/order/template/entry/SetAdditionalParty.ftl	(working copy)
@@ -35,7 +35,7 @@
       <table border="0" cellspacing="0" cellpadding="0" class="boxbottom">
         <tr>
           <td align="right">
-            <input type="radio" id="additionalPartyType_Person" name="additionalPartyType" value="Person" onclick="<#if additionalPartyType??>javascript:document.quickAddPartyForm.additionalPartyId.value='';</#if>document.quickAddPartyForm.submit()"<#if (additionalPartyType?? && additionalPartyType == "Person")> checked="checked"</#if> />
+            <input type="radio" id="additionalPartyType_Person" name="additionalPartyType" value="Person" onclick="<#if additionalPartyType??>javascript:document.quickAddPartyForm.additionalPartyId.value='';</#if>document.quickAddPartyForm.submit()"<#if (additionalPartyType?? && "Person" == additionalPartyType)> checked="checked"</#if> />
       </td>
           <td>
             <label for="additionalPartyType_Person">${uiLabelMap.CommonPerson}</label>
@@ -43,7 +43,7 @@
         </tr>
         <tr>
           <td align="right">
-            <input type="radio" id="additionalPartyType_Group" name="additionalPartyType" value="Group" onclick="<#if additionalPartyType??>javascript:document.quickAddPartyForm.additionalPartyId.value='';</#if>document.quickAddPartyForm.submit()"<#if additionalPartyType?? && additionalPartyType == "Group"> checked="checked"</#if> />
+            <input type="radio" id="additionalPartyType_Group" name="additionalPartyType" value="Group" onclick="<#if additionalPartyType??>javascript:document.quickAddPartyForm.additionalPartyId.value='';</#if>document.quickAddPartyForm.submit()"<#if additionalPartyType?? && "Group" == additionalPartyType> checked="checked"</#if> />
           </td>
           <td>
             <label for="additionalPartyType_Group">${uiLabelMap.CommonGroup}</label>
@@ -66,7 +66,7 @@
   </tr>
 
   <#if additionalPartyType?? && additionalPartyType != "" && additionalPartyType != "None">
-    <#if additionalPartyType == "Person">
+    <#if "Person" == additionalPartyType>
       <#assign lookupPartyView="LookupPerson">
     <#else>
       <#assign lookupPartyView="LookupPartyGroup">
Index: applications/order/template/entry/SplitShip.ftl
===================================================================
--- applications/order/template/entry/SplitShip.ftl	(revision 1801264)
+++ applications/order/template/entry/SplitShip.ftl	(working copy)
@@ -20,23 +20,23 @@
 <script language="javascript" type="text/javascript">
 //<![CDATA[
 function submitForm(form, mode, value) {
-    if (mode == "DN") {
+    if ("DN" == mode) {
         // done action; payment info
         form.action="<@ofbizUrl>updateShippingOptions/checkoutpayment</@ofbizUrl>";
         form.submit();
-    } else if (mode == "CS") {
+    } else if ("CS" == mode) {
         // continue shopping
         form.action="<@ofbizUrl>updateShippingOptions/showcart</@ofbizUrl>";
         form.submit();
-    } else if (mode == "NA") {
+    } else if ("NA" == mode) {
         // new address
         form.action="<@ofbizUrl>updateCheckoutOptions/editcontactmech?DONE_PAGE=splitship&partyId=${cart.getPartyId()}&preContactMechTypeId=POSTAL_ADDRESS&contactMechPurposeTypeId=SHIPPING_LOCATION</@ofbizUrl>";
         form.submit();
-    } else if (mode == "SV") {
+    } else if ("SV" == mode) {
         // save option; return to current screen
         form.action="<@ofbizUrl>updateShippingOptions/splitship</@ofbizUrl>";
         form.submit();
-    } else if (mode == "SA") {
+    } else if ("SA" == mode) {
         // selected shipping address
         form.action="<@ofbizUrl>updateShippingAddress/splitship</@ofbizUrl>";
         form.submit();
@@ -118,8 +118,8 @@
                       <select name="maySplit" class="selectBox">
                         <#assign maySplitStr = cart.getMaySplit(groupIdx)?default("")>
                         <option value="">${uiLabelMap.OrderSplittingPreference}</option>
-                        <option value="false" <#if maySplitStr == "N">selected="selected"</#if>>${uiLabelMap.OrderShipAllItemsTogether}</option>
-                        <option value="true" <#if maySplitStr == "Y">selected="selected"</#if>>${uiLabelMap.OrderShipItemsWhenAvailable}</option>
+                        <option value="false" <#if "N" == maySplitStr>selected="selected"</#if>>${uiLabelMap.OrderShipAllItemsTogether}</option>
+                        <option value="true" <#if "Y" == maySplitStr>selected="selected"</#if>>${uiLabelMap.OrderShipItemsWhenAvailable}</option>
                       </select>
                     </div>
                     <div>
@@ -126,8 +126,8 @@
                       <select name="isGift" class="selectBox">
                         <#assign isGiftStr = cart.getIsGift(groupIdx)?default("")>
                         <option value="">${uiLabelMap.OrderIsGift} ?</option>
-                        <option value="false" <#if isGiftStr == "N">selected="selected"</#if>>${uiLabelMap.OrderNotAGift}</option>
-                        <option value="true" <#if isGiftStr == "Y">selected="selected"</#if>>${uiLabelMap.OrderYesIsAGift}</option>
+                        <option value="false" <#if "N" == isGiftStr>selected="selected"</#if>>${uiLabelMap.OrderNotAGift}</option>
+                        <option value="true" <#if "Y" == isGiftStr>selected="selected"</#if>>${uiLabelMap.OrderYesIsAGift}</option>
                       </select>
                     </div>
 
Index: applications/order/template/entry/cart/AssociatedProducts.ftl
===================================================================
--- applications/order/template/entry/cart/AssociatedProducts.ftl	(revision 1801264)
+++ applications/order/template/entry/cart/AssociatedProducts.ftl	(working copy)
@@ -17,7 +17,7 @@
 under the License.
 -->
 
-<#if (shoppingCart.getOrderType() == "SALES_ORDER")>
+<#if ("SALES_ORDER" == shoppingCart.getOrderType())>
     <#assign associatedProducts = Static["org.apache.ofbiz.order.shoppingcart.product.ProductDisplayWorker"].getRandomCartProductAssoc(request, true)!>
 </#if>
 
Index: applications/order/template/entry/cart/Javascript.ftl
===================================================================
--- applications/order/template/entry/cart/Javascript.ftl	(revision 1801264)
+++ applications/order/template/entry/cart/Javascript.ftl	(working copy)
@@ -31,7 +31,7 @@
     var cform = document.cartform;
     var len = cform.elements.length;
     var selectedValue = e.value;
-    if (selectedValue == "") {
+    if ("" == selectedValue) {
         return;
     }
 
@@ -41,7 +41,7 @@
         var element = cform.elements[i];
         var ename = element.name;
         var sname = ename.substring(0,16);
-        if (sname == "option^GIFT_WRAP") {
+        if ("option^GIFT_WRAP" == sname) {
             var options = element.options;
             var olen = options.length;
             var matching = -1;
@@ -67,7 +67,7 @@
     obj_lookupwindow.focus();
 }
 function quicklookup(element) {
-    <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
+    <#if "PURCHASE_ORDER" == shoppingCart.getOrderType()>
     window.location='<@ofbizUrl>LookupBulkAddSupplierProducts</@ofbizUrl>?productId='+element.value;
     <#else>
     window.location='<@ofbizUrl>LookupBulkAddProducts</@ofbizUrl>?productId='+element.value;
Index: applications/order/template/entry/cart/PromoCodes.ftl
===================================================================
--- applications/order/template/entry/cart/PromoCodes.ftl	(revision 1801264)
+++ applications/order/template/entry/cart/PromoCodes.ftl	(working copy)
@@ -17,7 +17,7 @@
 under the License.
 -->
 
-<#if shoppingCart.getOrderType() == "SALES_ORDER">
+<#if "SALES_ORDER" == shoppingCart.getOrderType()>
 <div class="screenlet">
     <div class="screenlet-title-bar">
         <div class="h3">&nbsp;${uiLabelMap.OrderPromotionCouponCodes}</div>
Index: applications/order/template/entry/cart/ShowCart.ftl
===================================================================
--- applications/order/template/entry/cart/ShowCart.ftl	(revision 1801264)
+++ applications/order/template/entry/cart/ShowCart.ftl	(working copy)
@@ -26,7 +26,7 @@
         window.location='AddGiftCertificate';
     }
 </script>
-<#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
+<#if "PURCHASE_ORDER" == shoppingCart.getOrderType()>
   <#assign target="productAvailabalityByFacility">
 <#else>
   <#assign target="getProductInventoryAvailable">
@@ -33,7 +33,7 @@
 </#if>
 <div class="screenlet">
     <div class="screenlet-body">
-      <#if shoppingCart.getOrderType() == "SALES_ORDER">
+      <#if "SALES_ORDER" == shoppingCart.getOrderType()>
         <div>
           <#if quantityOnHandTotal?? && availableToPromiseTotal?? && (productId)??>
             <ul>
@@ -133,7 +133,7 @@
                     </div>
                   </td>
                 </tr>
-                <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
+                <#if "PURCHASE_ORDER" == shoppingCart.getOrderType()>
                 <tr>
                   <td align="right"><div>${uiLabelMap.OrderOrderItemType} :</div></td>
                   <td>
@@ -168,7 +168,7 @@
             </form>
           </td>
         </tr>
-        <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
+        <#if "PURCHASE_ORDER" == shoppingCart.getOrderType()>
         <tr><td><hr /></td></tr>
         <tr>
           <td>
Index: applications/order/template/entry/cart/ShowCartItems.ftl
===================================================================
--- applications/order/template/entry/cart/ShowCartItems.ftl	(revision 1801264)
+++ applications/order/template/entry/cart/ShowCartItems.ftl	(working copy)
@@ -34,7 +34,7 @@
   <#if (shoppingCartSize > 0)>
     <form method="post" action="<@ofbizUrl>modifycart</@ofbizUrl>" name="cartform" style="margin: 0;">
       <input type="hidden" name="removeSelected" value="false"/>
-      <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
+      <#if "PURCHASE_ORDER" == shoppingCart.getOrderType()>
         <input type="hidden" name="finalizeReqShipInfo" value="false"/>
         <input type="hidden" name="finalizeReqOptions" value="false"/>
         <input type="hidden" name="finalizeReqPayInfo" value="false"/>
@@ -169,7 +169,7 @@
                 </td>
               </tr>
             </#if>
-            <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
+            <#if "PURCHASE_ORDER" == shoppingCart.getOrderType()>
               <#assign currentOrderItemType = cartLine.getItemTypeGenericValue()!/>
                 <tr>
                   <td>
@@ -280,7 +280,7 @@
             </td>
             <td nowrap="nowrap" align="right">
               <div>
-                <#if cartLine.getIsPromo() || (shoppingCart.getOrderType() == "SALES_ORDER" && !security.hasEntityPermission("ORDERMGR", "_SALES_PRICEMOD", session))>
+                <#if cartLine.getIsPromo() || ("SALES_ORDER" == shoppingCart.getOrderType() && !security.hasEntityPermission("ORDERMGR", "_SALES_PRICEMOD", session))>
                   <@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=currencyUomId/>
                 <#else>
                     <#if (cartLine.getSelectedAmount() > 0) >
Index: applications/order/template/entry/catalog/AdvancedSearch.ftl
===================================================================
--- applications/order/template/entry/catalog/AdvancedSearch.ftl	(revision 1801264)
+++ applications/order/template/entry/catalog/AdvancedSearch.ftl	(working copy)
@@ -46,8 +46,8 @@
       <td valign="middle">
         <div>
           <input type="text" name="SEARCH_STRING" size="40" value="${requestParameters.SEARCH_STRING!}" />&nbsp;
-          <label>${uiLabelMap.CommonAny}<input type="radio" name="SEARCH_OPERATOR" value="OR" <#if searchOperator == "OR">checked="checked"</#if> /></label>
-          <label>${uiLabelMap.CommonAll}<input type="radio" name="SEARCH_OPERATOR" value="AND" <#if searchOperator == "AND">checked="checked"</#if> /></label>
+          <label>${uiLabelMap.CommonAny}<input type="radio" name="SEARCH_OPERATOR" value="OR" <#if "OR" == searchOperator>checked="checked"</#if> /></label>
+          <label>${uiLabelMap.CommonAll}<input type="radio" name="SEARCH_OPERATOR" value="AND" <#if "AND" == searchOperator>checked="checked"</#if> /></label>
         </div>
       </td>
     </tr>
Index: applications/order/template/entry/catalog/CategoryDetail.ftl
===================================================================
--- applications/order/template/entry/catalog/CategoryDetail.ftl	(revision 1801264)
+++ applications/order/template/entry/catalog/CategoryDetail.ftl	(working copy)
@@ -87,7 +87,7 @@
         <a href="javascript:document.thecategoryform.submit()" class="buttontext"><span style="white-space: nowrap;">${uiLabelMap.ProductAddProductsUsingDefaultQuantities}</span></a>
       </form>
     </#if>
-    <#if searchInCategory?default("Y") == "Y">
+    <#if "Y" == searchInCategory?default("Y")>
         <a href="<@ofbizUrl>advancedsearch?SEARCH_CATEGORY_ID=${productCategory.productCategoryId}</@ofbizUrl>" class="buttontext">${uiLabelMap.ProductSearchInCategory}</a>
     </#if>
     <#assign longDescription = categoryContentWrapper.get("LONG_DESCRIPTION", "html")!/>
Index: applications/order/template/entry/catalog/CompareProducts.ftl
===================================================================
--- applications/order/template/entry/catalog/CompareProducts.ftl	(revision 1801264)
+++ applications/order/template/entry/catalog/CompareProducts.ftl	(working copy)
@@ -42,7 +42,7 @@
             <#assign priceStyle = "regularPrice">
         </#if>
 
-        <#if (price.price?default(0) > 0 && product.requireAmount?default("N") == "N")>
+        <#if (price.price?default(0) > 0 && "N" == product.requireAmount?default("N"))>
                 <#if "Y" = product.isVirtual!> ${uiLabelMap.CommonFrom} </#if><span class="${priceStyle}"><@ofbizCurrency amount=price.price isoCode=price.currencyUsed/></span>
         </#if>
     </#if>
@@ -54,18 +54,18 @@
     <#elseif product.salesDiscontinuationDate?? && nowTimestamp.after(product.salesDiscontinuationDate)/>
                 <div style="color: red;">${uiLabelMap.ProductNoLongerAvailable}</div>
     <#-- check to see if it is a rental item; will enter parameters on the detail screen-->
-    <#elseif product.productTypeId! == "ASSET_USAGE"/>
+    <#elseif "ASSET_USAGE" == product.productTypeId!/>
                 <a href="javascript:doGetViaParent('${productUrl}');" class="buttontext">${uiLabelMap.OrderMakeBooking}...</a>
-    <#elseif product.productTypeId! == "ASSET_USAGE_OUT_IN"/>
+    <#elseif "ASSET_USAGE_OUT_IN" == product.productTypeId!/>
                 <a href="javascript:doGetViaParent('${productUrl}');" class="buttontext">${uiLabelMap.OrderRent}...</a>
     <#-- check to see if it is an aggregated or configurable product; will enter parameters on the detail screen-->
-    <#elseif product.productTypeId! == "AGGREGATED" || product.productTypeId! == "AGGREGATED_SERVICE"/>
+    <#elseif "AGGREGATED" == product.productTypeId! || "AGGREGATED_SERVICE" == product.productTypeId!/>
                 <a href="javascript:doGetViaParent('${productUrl}');" class="buttontext">${uiLabelMap.OrderConfigure}...</a>
     <#-- check to see if the product is a virtual product -->
-    <#elseif product.isVirtual?? && product.isVirtual == "Y"/>
+    <#elseif product.isVirtual?? && "Y" == product.isVirtual/>
                 <a href="javascript:doGetViaParent('${productUrl}');" class="buttontext">${uiLabelMap.OrderChooseVariations}...</a>
     <#-- check to see if the product requires an amount -->
-    <#elseif product.requireAmount?? && product.requireAmount == "Y"/>
+    <#elseif product.requireAmount?? && "Y" == product.requireAmount/>
                 <a href="javascript:doGetViaParent('${productUrl}');" class="buttontext">${uiLabelMap.OrderChooseAmount}...</a>
     <#else>
                 <form method="post" action="<@ofbizUrl secure="${request.isSecure()?string}">additem</@ofbizUrl>" name="compareFormAdd${product_index}">
@@ -158,18 +158,18 @@
     <#elseif product.salesDiscontinuationDate?? && nowTimestamp.after(product.salesDiscontinuationDate)/>
                 <div style="color: red;">${uiLabelMap.ProductNoLongerAvailable}</div>
     <#-- check to see if it is a rental item; will enter parameters on the detail screen-->
-    <#elseif product.productTypeId! == "ASSET_USAGE"/>
+    <#elseif "ASSET_USAGE" == product.productTypeId!/>
                 <a href="javascript:doGetViaParent('${productUrl}');" class="buttontext">${uiLabelMap.OrderMakeBooking}...</a>
-    <#elseif product.productTypeId! == "ASSET_USAGE_OUT_IN"/>
+    <#elseif "ASSET_USAGE_OUT_IN" == product.productTypeId!/>
                 <a href="javascript:doGetViaParent('${productUrl}');" class="buttontext">${uiLabelMap.OrderRent}...</a>
     <#-- check to see if it is an aggregated or configurable product; will enter parameters on the detail screen-->
-    <#elseif product.productTypeId! == "AGGREGATED" || product.productTypeId! == "AGGREGATED_SERVICE"/>
+    <#elseif "AGGREGATED" == product.productTypeId! || "AGGREGATED_SERVICE" == product.productTypeId!/>
                 <a href="javascript:doGetViaParent('${productUrl}');" class="buttontext">${uiLabelMap.OrderConfigure}...</a>
     <#-- check to see if the product is a virtual product -->
-    <#elseif product.isVirtual?? && product.isVirtual == "Y"/>
+    <#elseif product.isVirtual?? && "Y" == product.isVirtual/>
                 <a href="javascript:doGetViaParent('${productUrl}');" class="buttontext">${uiLabelMap.OrderChooseVariations}...</a>
     <#-- check to see if the product requires an amount -->
-    <#elseif product.requireAmount?? && product.requireAmount == "Y"/>
+    <#elseif product.requireAmount?? && "Y" == product.requireAmount/>
                 <a href="javascript:doGetViaParent('${productUrl}');" class="buttontext">${uiLabelMap.OrderChooseAmount}...</a>
     <#else>
                 <form method="post" action="<@ofbizUrl secure="${request.isSecure()?string}">additem</@ofbizUrl>" name="compare2FormAdd${product_index}">
Index: applications/order/template/entry/catalog/ConfigProductDetail.ftl
===================================================================
--- applications/order/template/entry/catalog/ConfigProductDetail.ftl	(revision 1801264)
+++ applications/order/template/entry/catalog/ConfigProductDetail.ftl	(working copy)
@@ -58,15 +58,15 @@
 
     function popupDetail() {
         var defaultDetailImage = "${firstDetailImage?default(mainDetailImageUrl?default("_NONE_"))}";
-        if (defaultDetailImage == null || defaultDetailImage == "null" || defaultDetailImage == "") {
+        if (defaultDetailImage == null || "null" == defaultDetailImage || "" == defaultDetailImage) {
             defaultDetailImage = "_NONE_";
         }
 
-        if (detailImageUrl == null || detailImageUrl == "null") {
+        if (detailImageUrl == null || "null" == detailImageUrl) {
             detailImageUrl = defaultDetailImage;
         }
 
-        if (detailImageUrl == "_NONE_") {
+        if ("_NONE_" == detailImageUrl) {
             hack = document.createElement('span');
             hack.innerHTML="${uiLabelMap.CommonNoDetailImageAvailableToDisplay}";
             showErrorAlert("${uiLabelMap.CommonErrorMessage2}","${uiLabelMap.CommonNoDetailImageAvailableToDisplay}");
@@ -287,7 +287,7 @@
       <form method="post" action="<@ofbizUrl>additem<#if requestAttributes._CURRENT_VIEW_??>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>" name="addform" style='margin: 0;'>
         <#assign inStock = true>
         <#-- Variant Selection -->
-        <#if product.isVirtual?? && product.isVirtual?upper_case == "Y">
+        <#if product.isVirtual?? && "Y" == product.isVirtual?upper_case>
           <#if variantTree?? && 0 < variantTree.size()>
             <#list featureSet as currentType>
               <div>
@@ -330,7 +330,7 @@
         <#-- check to see if the product requires inventory check and has inventory -->
         <#else>
           <#if inStock>
-            <#if product.requireAmount?default("N") == "Y">
+            <#if "Y" == product.requireAmount?default("N")>
               <#assign hiddenStyle = "visible">
             <#else>
               <#assign hiddenStyle = "hidden">
@@ -628,7 +628,7 @@
   </#if>
   <#if assocProducts?has_content>
     <tr><td>&nbsp;</td></tr>
-    <tr><td colspan="2"><h2>${beforeName!}<#if showName == "Y">${productContentWrapper.get("PRODUCT_NAME", "html")!}</#if>${afterName!}</h2></td></tr>
+    <tr><td colspan="2"><h2>${beforeName!}<#if "Y" == showName>${productContentWrapper.get("PRODUCT_NAME", "html")!}</#if>${afterName!}</h2></td></tr>
     <tr><td><hr /></td></tr>
     <#list assocProducts as productAssoc>
       <tr><td>
Index: applications/order/template/entry/catalog/InlineProductDetail.ftl
===================================================================
--- applications/order/template/entry/catalog/InlineProductDetail.ftl	(revision 1801264)
+++ applications/order/template/entry/catalog/InlineProductDetail.ftl	(working copy)
@@ -26,15 +26,15 @@
      function popupDetailInline(inlineCounter) {
         var imageField = 'detailImage' + inlineCounter;
         var defaultDetailImage = document.getElementById(imageField);
-        if (defaultDetailImage == null || defaultDetailImage == "null" || defaultDetailImage == "") {
+        if (defaultDetailImage == null || "null" == defaultDetailImage || "" == defaultDetailImage) {
             defaultDetailImage = "_NONE_";
         }
         var fieldName = 'detailImageUrl' + inlineCounter;
-        if (window[fieldName] == null || window[fieldName] == "null") {
+        if (window[fieldName] == null || "null" == window[fieldName]) {
             window[fieldName] = defaultDetailImage;
         }
 
-        if (window[fieldName] == "_NONE_") {
+        if ("_NONE_" == window[fieldName]) {
             hack = document.createElement('span');
             hack.innerHTML="${uiLabelMap.CommonNoDetailImageAvailableToDisplay}";
             showErrorAlert("${uiLabelMap.CommonErrorMessage2}","${uiLabelMap.CommonNoDetailImageAvailableToDisplay}");
@@ -230,7 +230,7 @@
  </script>
 </#if>
 
-<#if product.virtualVariantMethodEnum! == "VV_FEATURETREE" && featureLists?has_content>
+<#if "VV_FEATURETREE" == product.virtualVariantMethodEnum! && featureLists?has_content>
   <script language="JavaScript" type="text/javascript">
         function checkRadioButtoninline${inlineCounter}(inlineCounter, productId) {
         var add_product_id = 'add_product_id' + inlineCounter;
@@ -269,8 +269,8 @@
     </td>
     <td align="right" valign="top" width="100%">
         <#assign inStock = true>
-        <#if product.isVirtual!?upper_case == "Y">
-        <#if product.virtualVariantMethodEnum! == "VV_FEATURETREE" && featureLists?has_content>
+        <#if "Y" == product.isVirtual!?upper_case>
+        <#if "VV_FEATURETREE" == product.virtualVariantMethodEnum! && featureLists?has_content>
             <#list featureLists as featureList>
                 <#list featureList as feature>
                     <#if feature_index == 0>
@@ -286,7 +286,7 @@
               <input type="hidden" name="product_id${inlineCounter}" value="${product.productId}"/>
               <input type="hidden" name="add_product_id${inlineCounter}" value="NULL"/>
           </#if>
-          <#if !product.virtualVariantMethodEnum?? || product.virtualVariantMethodEnum == "VV_VARIANTTREE">
+          <#if !product.virtualVariantMethodEnum?? || "VV_VARIANTTREE" == product.virtualVariantMethodEnum>
            <#if variantTree?? && (variantTree.size() > 0)>
             <#list featureSet as currentType>
               <div>
@@ -334,7 +334,7 @@
         <#-- check to see if the product requires inventory check and has inventory -->
         <#elseif product.virtualVariantMethodEnum! != "VV_FEATURETREE">
           <#if inStock>
-            <#if product.requireAmount?default("N") == "Y">
+            <#if "Y" == product.requireAmount?default("N")>
               <#assign hiddenStyle = "visible">
             <#else>
               <#assign hiddenStyle = "hidden">
Index: applications/order/template/entry/catalog/KeywordSearchBox.ftl
===================================================================
--- applications/order/template/entry/catalog/KeywordSearchBox.ftl	(revision 1801264)
+++ applications/order/template/entry/catalog/KeywordSearchBox.ftl	(working copy)
@@ -48,8 +48,8 @@
           <input type="hidden" name="SEARCH_CATEGORY_ID" value="${searchCategoryId!}" />
         </#if>
         <div>
-          <label for="SEARCH_OPERATOR_OR"><input type="radio" name="SEARCH_OPERATOR" id="SEARCH_OPERATOR_OR" value="OR" <#if searchOperator == "OR">checked="checked"</#if> />${uiLabelMap.CommonAny}</label>
-          <label for="SEARCH_OPERATOR_AND"><input type="radio" name="SEARCH_OPERATOR" id="SEARCH_OPERATOR_AND" value="AND" <#if searchOperator == "AND">checked="checked"</#if> />${uiLabelMap.CommonAll}</label>
+          <label for="SEARCH_OPERATOR_OR"><input type="radio" name="SEARCH_OPERATOR" id="SEARCH_OPERATOR_OR" value="OR" <#if "OR" == searchOperator>checked="checked"</#if> />${uiLabelMap.CommonAny}</label>
+          <label for="SEARCH_OPERATOR_AND"><input type="radio" name="SEARCH_OPERATOR" id="SEARCH_OPERATOR_AND" value="AND" <#if "AND" == searchOperator>checked="checked"</#if> />${uiLabelMap.CommonAll}</label>
           <input type="submit" value="${uiLabelMap.CommonFind}" class="button" />
         </div>
       </fieldset>
Index: applications/order/template/entry/catalog/ProductDetail.ftl
===================================================================
--- applications/order/template/entry/catalog/ProductDetail.ftl	(revision 1801264)
+++ applications/order/template/entry/catalog/ProductDetail.ftl	(working copy)
@@ -96,15 +96,15 @@
 
     function popupDetail() {
         var defaultDetailImage = "${firstDetailImage?default(mainDetailImageUrl?default("_NONE_"))}";
-        if (defaultDetailImage == null || defaultDetailImage == "null" || defaultDetailImage == "") {
+        if (defaultDetailImage == null || "null" == defaultDetailImage || "" == defaultDetailImage) {
             defaultDetailImage = "_NONE_";
         }
 
-        if (detailImageUrl == null || detailImageUrl == "null") {
+        if (detailImageUrl == null || "null" == detailImageUrl) {
             detailImageUrl = defaultDetailImage;
         }
 
-        if (detailImageUrl == "_NONE_") {
+        if ("_NONE_" == detailImageUrl) {
             hack = document.createElement('span');
             hack.innerHTML="${uiLabelMap.CommonNoDetailImageAvailableToDisplay}";
             showErrorAlert("${uiLabelMap.CommonErrorMessage2}","${uiLabelMap.CommonNoDetailImageAvailableToDisplay}");
@@ -212,7 +212,7 @@
     }
 
     function additemSubmit(){
-        <#if product.productTypeId! == "ASSET_USAGE" || product.productTypeId! == "ASSET_USAGE_OUT_IN">
+        <#if "ASSET_USAGE" == product.productTypeId! || "ASSET_USAGE_OUT_IN" == product.productTypeId!>
         newdatevalue = validate(document.addform.reservStart.value);
         if (newdatevalue == false) {
             document.addform.reservStart.focus();
@@ -226,8 +226,8 @@
     }
 
     function addShoplistSubmit(){
-        <#if product.productTypeId! == "ASSET_USAGE" || product.productTypeId! == "ASSET_USAGE_OUT_IN">
-        if (document.addToShoppingList.reservStartStr.value == "") {
+        <#if "ASSET_USAGE" == product.productTypeId! || "ASSET_USAGE_OUT_IN" == product.productTypeId!>
+        if ("" == document.addToShoppingList.reservStartStr.value) {
             document.addToShoppingList.submit();
         } else {
             newdatevalue = validate(document.addToShoppingList.reservStartStr.value);
@@ -245,7 +245,7 @@
         </#if>
     }
 
-    <#if product.virtualVariantMethodEnum! == "VV_FEATURETREE" && featureLists?has_content>
+    <#if "VV_FEATURETREE" == product.virtualVariantMethodEnum! && featureLists?has_content>
         function checkRadioButton() {
             var block1 = document.getElementById("addCart1");
             var block2 = document.getElementById("addCart2");
@@ -358,7 +358,7 @@
             <#assign priceStyle = "regularPrice">
           </#if>
             ${uiLabelMap.OrderYourPrice}: <#if "Y" = product.isVirtual!> ${uiLabelMap.CommonFrom} </#if><span class="${priceStyle}"><@ofbizCurrency amount=price.price isoCode=price.currencyUsed/></span>
-             <#if product.productTypeId! == "ASSET_USAGE" || product.productTypeId! == "ASSET_USAGE_OUT_IN">
+             <#if "ASSET_USAGE" == product.productTypeId! || "ASSET_USAGE_OUT_IN" == product.productTypeId!>
             <#if product.reserv2ndPPPerc?? && product.reserv2ndPPPerc != 0><br /><span class="${priceStyle}">${uiLabelMap.ProductReserv2ndPPPerc}<#if !product.reservNthPPPerc?? || product.reservNthPPPerc == 0>${uiLabelMap.CommonUntil} ${product.reservMaxPersons!1}</#if> <@ofbizCurrency amount=product.reserv2ndPPPerc*price.price/100 isoCode=price.currencyUsed/></span></#if>
             <#if product.reservNthPPPerc?? &&product.reservNthPPPerc != 0><br /><span class="${priceStyle}">${uiLabelMap.ProductReservNthPPPerc} <#if !product.reserv2ndPPPerc?? || product.reserv2ndPPPerc == 0>${uiLabelMap.ProductReservSecond} <#else> ${uiLabelMap.ProductReservThird} </#if> ${uiLabelMap.CommonUntil} ${product.reservMaxPersons!1}, ${uiLabelMap.ProductEach}: <@ofbizCurrency amount=product.reservNthPPPerc*price.price/100 isoCode=price.currencyUsed/></span></#if>
             <#if (!product.reserv2ndPPPerc?? || product.reserv2ndPPPerc == 0) && (!product.reservNthPPPerc?? || product.reservNthPPPerc == 0)><br />${uiLabelMap.ProductMaximum} ${product.reservMaxPersons!1} ${uiLabelMap.ProductPersons}.</#if>
@@ -371,7 +371,7 @@
         <div>${uiLabelMap.OrderSave}: <span class="basePrice"><@ofbizCurrency amount=priceSaved isoCode=price.currencyUsed/> (${percentSaved?int}%)</span></div>
       </#if>
       <#-- show price details ("showPriceDetails" field can be set in the screen definition) -->
-      <#if (showPriceDetails?? && showPriceDetails?default("N") == "Y")>
+      <#if (showPriceDetails?? && "Y" == showPriceDetails?default("N"))>
           <#if price.orderItemPriceInfos??>
               <#list price.orderItemPriceInfos as orderItemPriceInfo>
                   <div>${orderItemPriceInfo.description!}</div>
@@ -441,8 +441,8 @@
         </#if>
         <#assign inStock = true>
         <#-- Variant Selection -->
-        <#if product.isVirtual!?upper_case == "Y">
-          <#if product.virtualVariantMethodEnum! == "VV_FEATURETREE" && featureLists?has_content>
+        <#if "Y" == product.isVirtual!?upper_case>
+          <#if "VV_FEATURETREE" == product.virtualVariantMethodEnum! && featureLists?has_content>
             <#list featureLists as featureList>
                 <#list featureList as feature>
                     <#if feature_index == 0>
@@ -470,7 +470,7 @@
               &nbsp;
             </div>
           </#if>
-          <#if !product.virtualVariantMethodEnum?? || product.virtualVariantMethodEnum == "VV_VARIANTTREE">
+          <#if !product.virtualVariantMethodEnum?? || "VV_VARIANTTREE" == product.virtualVariantMethodEnum>
            <#if variantTree?? && (variantTree.size() > 0)>
             <#list featureSet as currentType>
               <div>
@@ -520,7 +520,7 @@
         <#-- check to see if the product requires inventory check and has inventory -->
         <#elseif product.virtualVariantMethodEnum! != "VV_FEATURETREE">
           <#if inStock>
-            <#if product.requireAmount?default("N") == "Y">
+            <#if "Y" == product.requireAmount?default("N")>
               <#assign hiddenStyle = "visible">
             <#else>
               <#assign hiddenStyle = "hidden">
@@ -529,7 +529,7 @@
               <span style="white-space: nowrap;"><b>${uiLabelMap.CommonAmount}:</b></span>&nbsp;
               <input type="text" size="5" name="add_amount" value=""/>
             </div>
-            <#if product.productTypeId! == "ASSET_USAGE" || product.productTypeId! == "ASSET_USAGE_OUT_IN">
+            <#if "ASSET_USAGE" == product.productTypeId! || "ASSET_USAGE_OUT_IN" == product.productTypeId!>
                 <table width="100%"><tr>
                     <@htmlTemplate.renderDateTimeField name="reservStart" event="" action="" value="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="startDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
                     <@htmlTemplate.renderDateTimeField name="reservEnd" event="" action="" value="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30" id="endDate1" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
@@ -543,7 +543,7 @@
                   </tr>
                 </table>
             <#else>
-                <input type="text" size="5" name="quantity" value="1"<#if product.isVirtual!?upper_case == "Y"> disabled="disabled"</#if>/>
+                <input type="text" size="5" name="quantity" value="1"<#if "Y" == product.isVirtual!?upper_case> disabled="disabled"</#if>/>
             </#if>
             <#-- This calls addItem() so that variants of virtual products cant be added before distinguishing features are selected, it should not be changed to additemSubmit() -->
             <a href="javascript:addItem()" class="buttontext"><span style="white-space: nowrap;">${uiLabelMap.OrderAddToCart}</span></a>&nbsp;
@@ -571,7 +571,7 @@
             <option value="">${uiLabelMap.OrderNewShoppingList}</option>
           </select>
           &nbsp;&nbsp;
-          <#if product.productTypeId! == "ASSET_USAGE" || product.productTypeId! == "ASSET_USAGE_OUT_IN">
+          <#if "ASSET_USAGE" == product.productTypeId! || "ASSET_USAGE_OUT_IN" == product.productTypeId!>
               <table><tr><td>&nbsp;</td><td align="right">${uiLabelMap.CommonStartDate} (yyyy-mm-dd)</td><td><input type="text" size="10" name="reservStartStr" /></td><td>Number of&nbsp;days</td><td><input type="text" size="4" name="reservLength" /></td><td>&nbsp;</td><td align="right">Number of&nbsp;persons</td><td><input type="text" size="4" name="reservPersons" value="1" /></td><td align="right">Qty&nbsp;</td><td><input type="text" size="5" name="quantity" value="1" /></td></tr></table>
           <#else>
               <input type="text" size="5" name="quantity" value="1"/>
@@ -651,7 +651,7 @@
     <#assign targetRequest = targetRequestName>
   </#if>
   <#if assocProducts?has_content>
-    <h2>${beforeName!}<#if showName == "Y">${productContentWrapper.get("PRODUCT_NAME", "html")!}</#if>${afterName!}</h2>
+    <h2>${beforeName!}<#if "Y" == showName>${productContentWrapper.get("PRODUCT_NAME", "html")!}</#if>${afterName!}</h2>
 
     <div class="productsummary-container">
     <#list assocProducts as productAssoc>
Index: applications/order/template/entry/catalog/ProductSummary.ftl
===================================================================
--- applications/order/template/entry/catalog/ProductSummary.ftl	(revision 1801264)
+++ applications/order/template/entry/catalog/ProductSummary.ftl	(working copy)
@@ -53,7 +53,7 @@
 </script>
 <#if product??>
     <#-- variable setup -->
-    <#if backendPath?default("N") == "Y">
+    <#if "Y" == backendPath?default("N")>
         <#assign productUrl><@ofbizCatalogUrl productId=product.productId productCategoryId=categoryId/></#assign>
     <#else>
         <#assign productUrl><@ofbizCatalogAltUrl productId=product.productId productCategoryId=categoryId/></#assign>
@@ -111,18 +111,18 @@
           <#elseif product.salesDiscontinuationDate?? && nowTimestamp.after(product.salesDiscontinuationDate)>
             <div style="color: red;">${uiLabelMap.ProductNoLongerAvailable}</div>
           <#-- check to see if it is a rental item; will enter parameters on the detail screen-->
-          <#elseif product.productTypeId! == "ASSET_USAGE">
+          <#elseif "ASSET_USAGE" == product.productTypeId!>
             <a href="${productUrl}" class="buttontext">${uiLabelMap.OrderMakeBooking}...</a>
           <#-- check to see if it is an aggregated or configurable product; will enter parameters on the detail screen-->
-          <#elseif product.productTypeId! == "AGGREGATED" || product.productTypeId! == "AGGREGATED_SERVICE">
+          <#elseif "AGGREGATED" == product.productTypeId! || "AGGREGATED_SERVICE" == product.productTypeId!>
             <a href="${productUrl}" class="buttontext">${uiLabelMap.OrderConfigure}...</a>
           <#-- check to see if the product is a virtual product -->
-          <#elseif product.isVirtual?? && product.isVirtual == "Y">
+          <#elseif product.isVirtual?? && "Y" == product.isVirtual>
             <a href="${productUrl}" class="buttontext">${uiLabelMap.OrderChooseVariations}...</a>
           <#-- check to see if the product requires an amount -->
-          <#elseif product.requireAmount?? && product.requireAmount == "Y">
+          <#elseif product.requireAmount?? && "Y" == product.requireAmount>
             <a href="${productUrl}" class="buttontext">${uiLabelMap.OrderChooseAmount}...</a>
-          <#elseif product.productTypeId! == "ASSET_USAGE_OUT_IN">
+          <#elseif "ASSET_USAGE_OUT_IN" == product.productTypeId!>
             <a href="${productUrl}" class="buttontext">${uiLabelMap.OrderRent}...</a>
           <#else>
             <form method="post" action="<@ofbizUrl>additem</@ofbizUrl>" name="the${requestAttributes.formNamePrefix!}${requestAttributes.listIndex!}form" style="margin: 0;">
@@ -210,7 +210,7 @@
                     <#assign priceStyle = "regularPrice">
                   </#if>
 
-                  <#if (price.price?default(0) > 0 && product.requireAmount?default("N") == "N")>
+                  <#if (price.price?default(0) > 0 && "N" == product.requireAmount?default("N"))>
                     ${uiLabelMap.OrderYourPrice}: <#if "Y" = product.isVirtual!> ${uiLabelMap.CommonFrom} </#if><span class="${priceStyle}"><@ofbizCurrency amount=price.price isoCode=price.currencyUsed/></span>
                   </#if>
                 </b>
@@ -221,7 +221,7 @@
                 </#if>
                 </#if>
                 <#-- show price details ("showPriceDetails" field can be set in the screen definition) -->
-                <#if (showPriceDetails?? && showPriceDetails?default("N") == "Y")>
+                <#if (showPriceDetails?? && "Y" == showPriceDetails?default("N"))>
                     <#if price.orderItemPriceInfos??>
                         <#list price.orderItemPriceInfos as orderItemPriceInfo>
                             <div>${orderItemPriceInfo.description!}</div>
Index: applications/order/template/entry/catalog/QuickAddSummary.ftl
===================================================================
--- applications/order/template/entry/catalog/QuickAddSummary.ftl	(revision 1801264)
+++ applications/order/template/entry/catalog/QuickAddSummary.ftl	(working copy)
@@ -50,7 +50,7 @@
     <#elseif product.salesDiscontinuationDate?? && nowTimestamp.before(product.salesDiscontinuationDate)>
       ${uiLabelMap.ProductNoLongerAvailable}
     <#-- check to see if the product is a virtual product -->
-    <#elseif product.isVirtual?default("N") == "Y">
+    <#elseif "Y" == product.isVirtual?default("N")>
         <a href="<@ofbizUrl>product?<#if categoryId??>category_id=${categoryId}&amp;</#if>product_id=${product.productId}</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderChooseVariations}...</a>
     <#else>
         <input type="text" size="5" name="quantity_${product.productId}" value="" />
Index: applications/order/template/entry/order/OrderHeaderInfo.ftl
===================================================================
--- applications/order/template/entry/order/OrderHeaderInfo.ftl	(revision 1801264)
+++ applications/order/template/entry/order/OrderHeaderInfo.ftl	(working copy)
@@ -115,8 +115,8 @@
                 <td width="5">&nbsp;</td>
                 <td valign="top" width="80%">
                     <div>
-                        <#if maySplit?default("N") == "N">${uiLabelMap.FacilityWaitEntireOrderReady}</#if>
-                        <#if maySplit?default("Y") == "Y">${uiLabelMap.FacilityShipAvailable}</#if>
+                        <#if "N" == maySplit?default("N")>${uiLabelMap.FacilityWaitEntireOrderReady}</#if>
+                        <#if "Y" == maySplit?default("Y")>${uiLabelMap.FacilityShipAvailable}</#if>
                     </div>
                 </td>
             </tr>
@@ -143,8 +143,8 @@
                 <td width="5">&nbsp;</td>
                 <td valign="top" width="80%">
                     <div>
-                        <#if isGift?default("N") == "N">${uiLabelMap.OrderThisOrderNotGift}</#if>
-                        <#if isGift?default("N") == "Y">${uiLabelMap.OrderThisOrderGift}</#if>
+                        <#if "N" == isGift?default("N")>${uiLabelMap.OrderThisOrderNotGift}</#if>
+                        <#if "Y" == isGift?default("N")>${uiLabelMap.OrderThisOrderGift}</#if>
                     </div>
                 </td>
             </tr>
Index: applications/order/template/entry/order/OrderItems.ftl
===================================================================
--- applications/order/template/entry/order/OrderItems.ftl	(revision 1801264)
+++ applications/order/template/entry/order/OrderItems.ftl	(working copy)
@@ -40,7 +40,7 @@
             <#assign itemType = orderItem.getRelatedOne("OrderItemType", false)!>
             <tr><td colspan="6"><hr /></td></tr>
             <tr>
-              <#if orderItem.productId?? && orderItem.productId == "_?_">
+              <#if orderItem.productId?? && "_?_" == orderItem.productId>
                 <td colspan="1" valign="top">
                   <b><div> &gt;&gt; ${orderItem.itemDescription}</div></b>
                 </td>
@@ -75,7 +75,7 @@
               </#if>
             </tr>
             <#-- show info from workeffort if it was a rental item -->
-            <#if orderItem.orderItemTypeId?? && orderItem.orderItemTypeId == "RENTAL_ORDER_ITEM">
+            <#if orderItem.orderItemTypeId?? && "RENTAL_ORDER_ITEM" == orderItem.orderItemTypeId>
                 <#assign WorkOrderItemFulfillments = orderItem.getRelated("WorkOrderItemFulfillment", null, null, false)!>
                 <#if WorkOrderItemFulfillments?has_content>
                     <#list WorkOrderItemFulfillments as WorkOrderItemFulfillment>
@@ -95,7 +95,7 @@
                     <b><i>${uiLabelMap.OrderAdjustment}</i>:</b> <b>${localOrderReadHelper.getAdjustmentType(orderItemAdjustment)}</b>&nbsp;
                     <#if orderItemAdjustment.description?has_content>: ${StringUtil.wrapString(orderItemAdjustment.get("description",locale))}</#if>
 
-                    <#if orderItemAdjustment.orderAdjustmentTypeId == "SALES_TAX">
+                    <#if "SALES_TAX" == orderItemAdjustment.orderAdjustmentTypeId>
                       <#if orderItemAdjustment.primaryGeoId?has_content>
                         <#assign primaryGeo = orderItemAdjustment.getRelatedOne("PrimaryGeo", true)/>
                         <#if primaryGeo.geoName?has_content>
Index: applications/order/template/entry/order/OrderPaymentInfo.ftl
===================================================================
--- applications/order/template/entry/order/OrderPaymentInfo.ftl	(revision 1801264)
+++ applications/order/template/entry/order/OrderPaymentInfo.ftl	(working copy)
@@ -28,7 +28,7 @@
         <#-- offline payment address infomation :: change this to use Company's address -->
         <#if !paymentMethod?has_content && paymentMethodType?has_content>
           <tr>
-            <#if paymentMethodType.paymentMethodTypeId == "EXT_OFFLINE">
+            <#if "EXT_OFFLINE" == paymentMethodType.paymentMethodTypeId>
               <td colspan="3" valign="top">
                 <div align="center"><b>${uiLabelMap.AccountingOfflinePayment}</b></div>
                 <#if orderHeader?has_content && paymentAddress?has_content>
Index: applications/order/template/order/AppendOrderItem.ftl
===================================================================
--- applications/order/template/order/AppendOrderItem.ftl	(revision 1801264)
+++ applications/order/template/order/AppendOrderItem.ftl	(working copy)
@@ -105,7 +105,7 @@
                     </select>
                   </td>
                 </tr>
-                <#if orderHeader.orderTypeId == "PURCHASE_ORDER" && purchaseOrderItemTypeList?has_content>
+                <#if "PURCHASE_ORDER" == orderHeader.orderTypeId && purchaseOrderItemTypeList?has_content>
                 <tr>
                   <td class="label">${uiLabelMap.OrderOrderItemType}</td>
                   <td>
Index: applications/order/template/order/EditOrderItems.ftl
===================================================================
--- applications/order/template/order/EditOrderItems.ftl	(revision 1801264)
+++ applications/order/template/order/EditOrderItems.ftl	(working copy)
@@ -70,7 +70,7 @@
                       <tr>
                           <#assign orderItemType = orderItem.getRelatedOne("OrderItemType", false)!>
                           <#assign productId = orderItem.productId!>
-                          <#if productId?? && productId == "shoppingcart.CommentLine">
+                          <#if productId?? && "shoppingcart.CommentLine" == productId>
                               <td colspan="8" valign="top">
                                   <span class="label">&gt;&gt; ${orderItem.itemDescription}</span>
                               </td>
@@ -151,7 +151,7 @@
                                     </#if>
                                   </#list>
                                 </#if>
-                                <#if orderHeader.orderTypeId == "PURCHASE_ORDER">
+                                <#if "PURCHASE_ORDER" == orderHeader.orderTypeId>
                                   <#assign remainingQuantity = ((orderItem.quantity?default(0) - orderItem.cancelQuantity?default(0)) - totalReceived?double)>
                                 <#else>
                                   <#assign remainingQuantity = ((orderItem.quantity?default(0) - orderItem.cancelQuantity?default(0)) - shippedQuantity?double)>
@@ -162,7 +162,7 @@
                               </td>
                               <td class="align-text" valign="top" nowrap="nowrap">
                                   <#-- check for permission to modify price -->
-                                  <#if (allowPriceChange) && !(orderItem.statusId == "ITEM_CANCELLED" || orderItem.statusId == "ITEM_COMPLETED")>
+                                  <#if (allowPriceChange) && !("ITEM_CANCELLED" == orderItem.statusId || "ITEM_COMPLETED" == orderItem.statusId)>
                                       <input type="text" size="8" name="ipm_${orderItem.orderItemSeqId}" value="<@ofbizAmount amount=orderItem.unitPrice/>"/>
                                       &nbsp;<input type="checkbox" name="opm_${orderItem.orderItemSeqId}" value="Y"/>
                                   <#else>
@@ -213,7 +213,7 @@
                                       <span class="label">${uiLabelMap.OrderAdjustment}</span>&nbsp;${adjustmentType.get("description",locale)}&nbsp;
                                       ${orderItemAdjustment.get("description",locale)!} (${orderItemAdjustment.comments?default("")})
 
-                                      <#if orderItemAdjustment.orderAdjustmentTypeId == "SALES_TAX">
+                                      <#if "SALES_TAX" == orderItemAdjustment.orderAdjustmentTypeId>
                                       <#if orderItemAdjustment.primaryGeoId?has_content>
                                       <#assign primaryGeo = orderItemAdjustment.getRelatedOne("PrimaryGeo", true)/>
                                       <span class="label">${uiLabelMap.OrderJurisdiction}</span>&nbsp;${primaryGeo.geoName} [${primaryGeo.abbreviation!}]
@@ -300,7 +300,7 @@
             <#assign adjustmentAmount = Static["org.apache.ofbiz.order.order.OrderReadHelper"].calcOrderAdjustment(orderHeaderAdjustment, orderSubTotal)>
             <#assign orderAdjustmentId = orderHeaderAdjustment.get("orderAdjustmentId")>
             <#assign productPromoCodeId = ''>
-            <#if adjustmentType.get("orderAdjustmentTypeId") == "PROMOTION_ADJUSTMENT" && orderHeaderAdjustment.get("productPromoId")?has_content>
+            <#if "PROMOTION_ADJUSTMENT" == adjustmentType.get("orderAdjustmentTypeId") && orderHeaderAdjustment.get("productPromoId")?has_content>
                 <#assign productPromo = orderHeaderAdjustment.getRelatedOne("ProductPromo", false)>
                 <#assign productPromoCodes = delegator.findByAnd("ProductPromoCode", {"productPromoId":productPromo.productPromoId}, null, false)>
                 <#assign orderProductPromoCode = ''>
@@ -344,7 +344,7 @@
                 <form name="deleteOrderAdjustment${orderAdjustmentId}" method="post" action="<@ofbizUrl>deleteOrderAdjustment</@ofbizUrl>">
                     <input type="hidden" name="orderAdjustmentId" value="${orderAdjustmentId!}"/>
                     <input type="hidden" name="orderId" value="${orderId!}"/>
-                    <#if adjustmentType.get("orderAdjustmentTypeId") == "PROMOTION_ADJUSTMENT">
+                    <#if "PROMOTION_ADJUSTMENT" == adjustmentType.get("orderAdjustmentTypeId")>
                         <input type="hidden" name="productPromoCodeId" value="${productPromoCodeId!}"/>
                     </#if>
                 </form>
Index: applications/order/template/order/FindOrders.ftl
===================================================================
--- applications/order/template/order/FindOrders.ftl	(revision 1801264)
+++ applications/order/template/order/FindOrders.ftl	(working copy)
@@ -38,7 +38,7 @@
     var orders = form.elements.length;
     for (var i = 0; i < orders; i++) {
         var element = form.elements[i];
-        if (element.name == "orderIdList") {
+        if ("orderIdList" == element.name) {
             element.checked = master.checked;
         }
     }
@@ -57,7 +57,7 @@
     var isAllSelected = true;
     for (var i = 0; i < orders; i++) {
         var element = form.elements[i];
-        if (element.name == "orderIdList" && !element.checked)
+        if ("orderIdList" == element.name && !element.checked)
             isAllSelected = false;
     }
     jQuery('#checkAllOrders').attr("checked", isAllSelected);
@@ -127,7 +127,7 @@
   <div class="screenlet-title-bar">
     <ul>
       <li class="h3">${uiLabelMap.OrderFindOrder}</li>
-      <#if requestParameters.hideFields?default("N") == "Y">
+      <#if "Y" == requestParameters.hideFields?default("N")>
         <li><a href="javascript:document.lookupandhidefields${requestParameters.hideFields}.submit()">${uiLabelMap.CommonShowLookupFields}</a></li>
       <#else>
         <#if orderList??><li><a href="javascript:document.lookupandhidefields${requestParameters.hideFields?default("Y")}.submit()">${uiLabelMap.CommonHideFields}</a></li></#if>
@@ -415,7 +415,7 @@
                     <tr>
                       <td nowrap="nowrap">
                         <input type="checkbox" id="filterInventoryProblems" name="filterInventoryProblems" value="Y"
-                            <#if requestParameters.filterInventoryProblems?default("N") == "Y">checked="checked"</#if> />
+                            <#if "Y" == requestParameters.filterInventoryProblems?default("N")>checked="checked"</#if> />
                       </td>
                     </tr>
                   </table>
@@ -429,7 +429,7 @@
                     <tr>
                       <td nowrap="nowrap">
                         <input type="checkbox" id="filterPartiallyReceivedPOs" name="filterPartiallyReceivedPOs" value="Y"
-                            <#if requestParameters.filterPartiallyReceivedPOs?default("N") == "Y">checked="checked"</#if> />
+                            <#if "Y" == requestParameters.filterPartiallyReceivedPOs?default("N")>checked="checked"</#if> />
                       </td>
                     </tr>
                   </table>
@@ -443,7 +443,7 @@
                     <tr>
                       <td nowrap="nowrap">
                         <input type="checkbox" id="filterPOsOpenPastTheirETA" name="filterPOsOpenPastTheirETA" value="Y"
-                            <#if requestParameters.filterPOsOpenPastTheirETA?default("N") == "Y">checked="checked"</#if> />
+                            <#if "Y" == requestParameters.filterPOsOpenPastTheirETA?default("N")>checked="checked"</#if> />
                       </td>
                     </tr>
                   </table>
@@ -457,7 +457,7 @@
                     <tr>
                       <td nowrap="nowrap">
                         <input type="checkbox" id="filterPOsWithRejectedItems" name="filterPOsWithRejectedItems" value="Y"
-                            <#if requestParameters.filterPOsWithRejectedItems?default("N") == "Y">checked="checked"</#if> />
+                            <#if "Y" == requestParameters.filterPOsWithRejectedItems?default("N")>checked="checked"</#if> />
                       </td>
                     </tr>
                   </table>
@@ -605,7 +605,7 @@
           <td width="10%" align="right">${uiLabelMap.OrderRemainingSubTotal}</td>
           <td width="10%" align="right">${uiLabelMap.OrderOrderTotal}</td>
           <td width="5%">&nbsp;</td>
-            <#if (requestParameters.filterInventoryProblems?default("N") == "Y") || (requestParameters.filterPOsOpenPastTheirETA?default("N") == "Y") || (requestParameters.filterPOsWithRejectedItems?default("N") == "Y") || (requestParameters.filterPartiallyReceivedPOs?default("N") == "Y")>
+            <#if ("Y" == requestParameters.filterInventoryProblems?default("N")) || ("Y" == requestParameters.filterPOsOpenPastTheirETA?default("N")) || ("Y" == requestParameters.filterPOsWithRejectedItems?default("N")) || ("Y" == requestParameters.filterPartiallyReceivedPOs?default("N"))>
               <td width="10%">${uiLabelMap.CommonStatus}</td>
               <td width="5%">${uiLabelMap.CommonFilter}</td>
             <#else>
@@ -621,7 +621,7 @@
             <#assign orh = Static["org.apache.ofbiz.order.order.OrderReadHelper"].getHelper(orderHeader)>
             <#assign statusItem = orderHeader.getRelatedOne("StatusItem", true)>
             <#assign orderType = orderHeader.getRelatedOne("OrderType", true)>
-            <#if orderType.orderTypeId == "PURCHASE_ORDER">
+            <#if "PURCHASE_ORDER" == orderType.orderTypeId>
               <#assign displayParty = orh.getSupplierAgent()!>
             <#else>
               <#assign displayParty = orh.getPlacingParty()!>
@@ -658,7 +658,7 @@
               <td>&nbsp;</td>
               <td>${statusItem.get("description",locale)?default(statusItem.statusId?default("N/A"))}</td>
               </td>
-              <#if (requestParameters.filterInventoryProblems?default("N") == "Y") || (requestParameters.filterPOsOpenPastTheirETA?default("N") == "Y") || (requestParameters.filterPOsWithRejectedItems?default("N") == "Y") || (requestParameters.filterPartiallyReceivedPOs?default("N") == "Y")>
+              <#if ("Y" == requestParameters.filterInventoryProblems?default("N")) || ("Y" == requestParameters.filterPOsOpenPastTheirETA?default("N")) || ("Y" == requestParameters.filterPOsWithRejectedItems?default("N")) || ("Y" == requestParameters.filterPartiallyReceivedPOs?default("N"))>
                   <td>
                       <#if filterInventoryProblems.contains(orderHeader.orderId)>
                         Inv&nbsp;
Index: applications/order/template/order/OrderContactInfo.ftl
===================================================================
--- applications/order/template/order/OrderContactInfo.ftl	(revision 1801264)
+++ applications/order/template/order/OrderContactInfo.ftl	(working copy)
@@ -24,7 +24,7 @@
       <input type="hidden" name="contactMechPurposeTypeId" value="${contactMechPurpose.contactMechPurposeTypeId!}" />
       <input type="hidden" name="oldContactMechId" value="${contactMech.contactMechId!}" />
       <select name="contactMechId">
-        <#if contactMech.contactMechTypeId == "POSTAL_ADDRESS">
+        <#if "POSTAL_ADDRESS" == contactMech.contactMechTypeId>
           <option value="${contactMechAddress.contactMechId}">${(contactMechAddress.address1)?default("")} - ${contactMechAddress.city?default("")}</option>
           <option value="${contactMechAddress.contactMechId}"></option>
           <#list contactMechList as contactMech>
@@ -36,7 +36,7 @@
               </#if>
             </#list>
           </#list>
-        <#elseif contactMech.contactMechTypeId == "TELECOM_NUMBER">
+        <#elseif "TELECOM_NUMBER" == contactMech.contactMechTypeId>
           <option value="${contactMechAddress.contactMechId}">${contactMechAddress.countryCode!} <#if contactMechAddress.areaCode??>${contactMechAddress.areaCode}-</#if>${contactMechAddress.contactNumber}</option>
           <option value="${contactMechAddress.contactMechId}"></option>
           <#list contactMechList as contactMech>
@@ -48,7 +48,7 @@
                </#if>
              </#list>
           </#list>
-        <#elseif contactMech.contactMechTypeId == "EMAIL_ADDRESS">
+        <#elseif "EMAIL_ADDRESS" == contactMech.contactMechTypeId>
           <option value="${contactMechAddress.contactMechId}">${(contactMechAddress.infoString)?default("")}</option>
           <option value="${contactMechAddress.contactMechId}"></option>
           <#list contactMechList as contactMech>
@@ -113,7 +113,7 @@
             </td>
             <td width="1%">&nbsp;</td>
             <td valign="top" width="80%">
-              <#if contactMech.contactMechTypeId == "POSTAL_ADDRESS">
+              <#if "POSTAL_ADDRESS" == contactMech.contactMechTypeId>
                 <#assign postalAddress = orderContactMechValueMap.postalAddress>
                 <#if postalAddress?has_content>
                   <div>
@@ -122,18 +122,18 @@
                   </div>
                   <@updateOrderContactMech orderHeader=orderHeader! contactMechTypeId=contactMech.contactMechTypeId contactMechList=postalContactMechList! contactMechPurposeTypeId=contactMechPurpose.contactMechPurposeTypeId! contactMechAddress=postalAddress! />
                 </#if>
-              <#elseif contactMech.contactMechTypeId == "TELECOM_NUMBER">
+              <#elseif "TELECOM_NUMBER" == contactMech.contactMechTypeId>
                 <#assign telecomNumber = orderContactMechValueMap.telecomNumber>
                 <div>
                   ${telecomNumber.countryCode!}
                   <#if telecomNumber.areaCode??>${telecomNumber.areaCode}-</#if>${telecomNumber.contactNumber}
-                  <#if !telecomNumber.countryCode?? || telecomNumber.countryCode == "011" || telecomNumber.countryCode == "1">
+                  <#if !telecomNumber.countryCode?? || "011" == telecomNumber.countryCode || "1" == telecomNumber.countryCode>
                     <a target="_blank" href="${uiLabelMap.CommonLookupAnywhoLink}" class="buttontext">${uiLabelMap.CommonLookupAnywho}</a>
                    <a target="_blank" href="${uiLabelMap.CommonLookupWhitepagesTelNumberLink}" class="buttontext">${uiLabelMap.CommonLookupWhitepages}</a>
                   </#if>
                 </div>
                 <@updateOrderContactMech orderHeader=orderHeader! contactMechTypeId=contactMech.contactMechTypeId contactMechList=telecomContactMechList! contactMechPurposeTypeId=contactMechPurpose.contactMechPurposeTypeId! contactMechAddress=telecomNumber! />
-              <#elseif contactMech.contactMechTypeId == "EMAIL_ADDRESS">
+              <#elseif "EMAIL_ADDRESS" == contactMech.contactMechTypeId>
                 <div>
                   ${contactMech.infoString}
                   <#if security.hasEntityPermission("ORDERMGR", "_SEND_CONFIRMATION", session)>
@@ -143,7 +143,7 @@
                   </#if>
                 </div>
                 <@updateOrderContactMech orderHeader=orderHeader! contactMechTypeId=contactMech.contactMechTypeId contactMechList=emailContactMechList! contactMechPurposeTypeId=contactMechPurpose.contactMechPurposeTypeId! contactMechAddress=contactMech! />
-              <#elseif contactMech.contactMechTypeId == "WEB_ADDRESS">
+              <#elseif "WEB_ADDRESS" == contactMech.contactMechTypeId>
                 <div>
                   ${contactMech.infoString}
                   <#assign openString = contactMech.infoString>
Index: applications/order/template/order/OrderInfo.ftl
===================================================================
--- applications/order/template/order/OrderInfo.ftl	(revision 1801264)
+++ applications/order/template/order/OrderInfo.ftl	(working copy)
@@ -25,7 +25,7 @@
             </#if>
             <#assign orderType = orderHeader.getRelatedOne("OrderType", false)/>
             <li class="h3">&nbsp;${(orderType.get("description", locale))?default(uiLabelMap.OrderOrder)}&nbsp;${uiLabelMap.CommonNbr}&nbsp;<a href="<@ofbizUrl>orderview?orderId=${orderId}</@ofbizUrl>">${orderId}</a> ${externalOrder!} [&nbsp;<a href="<@ofbizUrl>order.pdf?orderId=${orderId}</@ofbizUrl>" target="_blank">PDF</a>&nbsp;]</li>
-            <#if currentStatus.statusId == "ORDER_APPROVED" && orderHeader.orderTypeId == "SALES_ORDER">
+            <#if "ORDER_APPROVED" == currentStatus.statusId && "SALES_ORDER" == orderHeader.orderTypeId>
               <li class="h3"><a href="javascript:document.PrintOrderPickSheet.submit()">${uiLabelMap.FormFieldTitle_printPickSheet}</a>
               <form name="PrintOrderPickSheet" method="post" action="<@ofbizUrl>orderPickSheet.pdf</@ofbizUrl>" target="_BLANK">
                 <input type="hidden" name="facilityId" value="${storeFacilityId!}"/>
@@ -34,7 +34,7 @@
               </form>
               </li>
             </#if>
-            <#if currentStatus.statusId == "ORDER_CREATED" || currentStatus.statusId == "ORDER_PROCESSING">
+            <#if "ORDER_CREATED" == currentStatus.statusId || "ORDER_PROCESSING" == currentStatus.statusId>
               <li><a href="javascript:document.OrderApproveOrder.submit()">${uiLabelMap.OrderApproveOrder}</a>
               <form name="OrderApproveOrder" method="post" action="<@ofbizUrl>changeOrderStatus/orderview</@ofbizUrl>">
                 <input type="hidden" name="statusId" value="ORDER_APPROVED"/>
@@ -47,7 +47,7 @@
                 <input type="hidden" name="fromDate" value="${fromDate!}"/>
               </form>
               </li>
-            <#elseif currentStatus.statusId == "ORDER_APPROVED">
+            <#elseif "ORDER_APPROVED" == currentStatus.statusId>
               <li><a href="javascript:document.OrderHold.submit()">${uiLabelMap.OrderHold}</a>
               <form name="OrderHold" method="post" action="<@ofbizUrl>changeOrderStatus/orderview</@ofbizUrl>">
                 <input type="hidden" name="statusId" value="ORDER_HOLD"/>
@@ -58,7 +58,7 @@
                 <input type="hidden" name="fromDate" value="${fromDate!}"/>
               </form>
               </li>
-            <#elseif currentStatus.statusId == "ORDER_HOLD">
+            <#elseif "ORDER_HOLD" == currentStatus.statusId>
               <li><a href="javascript:document.OrderApproveOrder.submit()">${uiLabelMap.OrderApproveOrder}</a>
               <form name="OrderApproveOrder" method="post" action="<@ofbizUrl>changeOrderStatus/orderview</@ofbizUrl>">
                 <input type="hidden" name="statusId" value="ORDER_APPROVED"/>
@@ -242,9 +242,9 @@
                      <form name="setOrderReservationPriority" method="post" action="<@ofbizUrl>setOrderReservationPriority</@ofbizUrl>">
                      <input type = "hidden" name="orderId" value="${orderId}"/>
                     <select name="priority">
-                      <option value="1" <#if (orderHeader.priority)! == "1">selected="selected" </#if>>${uiLabelMap.CommonHigh}</option>
-                      <option value="2" <#if (orderHeader.priority)! == "2">selected="selected" <#elseif !(orderHeader.priority)?has_content>selected="selected"</#if>>${uiLabelMap.CommonNormal}</option>
-                      <option value="3" <#if (orderHeader.priority)! == "3">selected="selected" </#if>>${uiLabelMap.CommonLow}</option>
+                      <option value="1" <#if "1" == (orderHeader.priority)!>selected="selected" </#if>>${uiLabelMap.CommonHigh}</option>
+                      <option value="2" <#if "2" == (orderHeader.priority)!>selected="selected" <#elseif !(orderHeader.priority)?has_content>selected="selected"</#if>>${uiLabelMap.CommonNormal}</option>
+                      <option value="3" <#if "3" == (orderHeader.priority)!>selected="selected" </#if>>${uiLabelMap.CommonLow}</option>
                     </select>
                     <input type="submit" class="smallSubmit" value="${uiLabelMap.FormFieldTitle_reserveInventory}"/>
                     </form>
@@ -259,8 +259,8 @@
                  <form name="setInvoicePerShipment" method="post" action="<@ofbizUrl>setInvoicePerShipment</@ofbizUrl>">
                  <input type = "hidden" name="orderId" value="${orderId}"/>
                 <select name="invoicePerShipment">
-                  <option value="Y" <#if (orderHeader.invoicePerShipment)! == "Y">selected="selected" </#if>>${uiLabelMap.CommonYes}</option>
-                  <option value="N" <#if (orderHeader.invoicePerShipment)! == "N">selected="selected" </#if>>${uiLabelMap.CommonNo}</option>
+                  <option value="Y" <#if "Y" == (orderHeader.invoicePerShipment)!>selected="selected" </#if>>${uiLabelMap.CommonYes}</option>
+                  <option value="N" <#if "N" == (orderHeader.invoicePerShipment)!>selected="selected" </#if>>${uiLabelMap.CommonNo}</option>
                 </select>
                 <input type="submit" class="smallSubmit" value="${uiLabelMap.CommonUpdate}"/>
                 </form>
@@ -267,7 +267,7 @@
               </td>
             </tr>
             <tr><td colspan="3"><hr /></td></tr>
-            <#if orderHeader.isViewed?has_content && orderHeader.isViewed == "Y">
+            <#if orderHeader.isViewed?has_content && "Y" == orderHeader.isViewed>
             <tr>
               <td class="label">${uiLabelMap.OrderViewed}</td>
               <td width="5%"></td>
Index: applications/order/template/order/OrderItems.ftl
===================================================================
--- applications/order/template/order/OrderItems.ftl	(revision 1801264)
+++ applications/order/template/order/OrderItems.ftl	(working copy)
@@ -47,11 +47,11 @@
                     <#list orderItemList as orderItem>
                         <#assign orderItemContentWrapper = Static["org.apache.ofbiz.order.order.OrderContentWrapper"].makeOrderContentWrapper(orderItem, request)>
                         <#assign orderItemShipGrpInvResList = orderReadHelper.getOrderItemShipGrpInvResList(orderItem)>
-                        <#if orderHeader.orderTypeId == "SALES_ORDER"><#assign pickedQty = orderReadHelper.getItemPickedQuantityBd(orderItem)></#if>
-                        <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                        <#if "SALES_ORDER" == orderHeader.orderTypeId><#assign pickedQty = orderReadHelper.getItemPickedQuantityBd(orderItem)></#if>
+                        <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                             <#assign orderItemType = orderItem.getRelatedOne("OrderItemType", false)!>
                             <#assign productId = orderItem.productId!>
-                            <#if productId?? && productId == "shoppingcart.CommentLine">
+                            <#if productId?? && "shoppingcart.CommentLine" == productId>
                                 <td colspan="7" valign="top" class="label"> &gt;&gt; ${orderItem.itemDescription}</td>
                             <#else>
                                 <td colspan="7">
@@ -103,8 +103,8 @@
                                 </td>
                             </#if>
                         </tr>
-                        <tr<#if itemClass == "1"> class="alternate-row"</#if>>
-                            <#if productId?? && productId == "shoppingcart.CommentLine">
+                        <tr<#if "1" == itemClass> class="alternate-row"</#if>>
+                            <#if productId?? && "shoppingcart.CommentLine" == productId>
                                 <td colspan="7" valign="top" class="label"> &gt;&gt; ${orderItem.itemDescription}</td>
                             <#else>
                                 <td valign="top">
@@ -242,11 +242,11 @@
                                                             </#if>
                                                         </#list>
                                                     </#if>
-                                                    <#if product.productTypeId == "SERVICE" && currentItemStatus.statusId == "ITEM_COMPLETED">
+                                                    <#if "SERVICE" == product.productTypeId && "ITEM_COMPLETED" == currentItemStatus.statusId>
                                                         <#assign shippedQuantity = orderItem.quantity?default(0)/>
                                                         <#assign totalReceived = orderItem.quantity?default(0)>
                                                     </#if>
-                                                    <#if orderHeader.orderTypeId == "PURCHASE_ORDER">
+                                                    <#if "PURCHASE_ORDER" == orderHeader.orderTypeId>
                                                         <#assign remainingQuantity = ((orderItem.quantity?default(0) - orderItem.cancelQuantity?default(0)) - totalReceived?double)>
                                                     <#else>
                                                         <#assign remainingQuantity = ((orderItem.quantity?default(0) - orderItem.cancelQuantity?default(0)) - shippedQuantity?double)>
@@ -266,8 +266,8 @@
                                                 <tr valign="top">
                                                     <td><b>${uiLabelMap.OrderCancelled}</b></td>
                                                     <td>${orderItem.cancelQuantity?default(0)?string.number}</td>
-                                                    <#if orderHeader.orderTypeId == "SALES_ORDER">
-                                                        <#if pickedQty gt 0 && orderHeader.statusId == "ORDER_APPROVED">
+                                                    <#if "SALES_ORDER" == orderHeader.orderTypeId>
+                                                        <#if pickedQty gt 0 && "ORDER_APPROVED" == orderHeader.statusId>
                                                             <td><font color="red"><b>${uiLabelMap.OrderQtyPicked}</b></font></td>
                                                             <td><font color="red">${pickedQty?default(0)?string.number}</font></td>
                                                         <#else>
@@ -282,7 +282,7 @@
                                                 <tr valign="top">
                                                     <td><b>${uiLabelMap.OrderRemaining}</b></td>
                                                     <td>${remainingQuantity}</td>
-                                                    <#if orderHeader.orderTypeId == "PURCHASE_ORDER">
+                                                    <#if "PURCHASE_ORDER" == orderHeader.orderTypeId>
                                                         <td><b>${uiLabelMap.OrderPlannedInReceive}</b></td>
                                                         <td>${totalReceived}</td>
                                                     <#else>
@@ -296,11 +296,11 @@
                                                     <td><b>${uiLabelMap.OrderOutstanding}</b></td>
                                                     <td>
                                                         <#-- Make sure digital goods without shipments don't always remainn "outstanding": if item is completed, it must have no outstanding quantity.  -->
-                                                        <#if (orderItem.statusId?has_content) && (orderItem.statusId == "ITEM_COMPLETED")>
+                                                        <#if (orderItem.statusId?has_content) && ("ITEM_COMPLETED" == orderItem.statusId)>
                                                             0
-                                                        <#elseif orderHeader.orderTypeId == "PURCHASE_ORDER">
+                                                        <#elseif "PURCHASE_ORDER" == orderHeader.orderTypeId>
                                                             ${(orderItem.quantity?default(0) - orderItem.cancelQuantity?default(0)) - totalReceived?double}
-                                                        <#elseif orderHeader.orderTypeId == "SALES_ORDER">
+                                                        <#elseif "SALES_ORDER" == orderHeader.orderTypeId>
                                                             ${(orderItem.quantity?default(0) - orderItem.cancelQuantity?default(0)) - shippedQuantity?double}
                                                         </#if>
                                                     </td>
@@ -337,7 +337,7 @@
                         <#if workOrderItemFulfillments?has_content>
                             <#list workOrderItemFulfillments as workOrderItemFulfillment>
                                 <#assign workEffort = workOrderItemFulfillment.getRelatedOne("WorkEffort", true)>
-                                <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                                <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                     <td>&nbsp;</td>
                                     <td colspan="6">
                                         <#if orderItem.orderItemTypeId != "RENTAL_ORDER_ITEM">
@@ -367,7 +367,7 @@
                                 <#assign linkedOrderItemValue = linkedOrderItem.getRelatedOne("ToOrderItem", false)>
                                 <#assign linkedOrderItemValueStatus = linkedOrderItemValue.getRelatedOne("StatusItem", false)>
                                 <#assign description = linkedOrderItem.getRelatedOne("OrderItemAssocType", false).getString("description")/>
-                                <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                                <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                     <td>&nbsp;</td>
                                     <td colspan="6">
                                         <span class="label">${uiLabelMap.OrderLinkedToOrderItem}</span>&nbsp;(${description!})
@@ -384,7 +384,7 @@
                                 <#assign linkedOrderItemValue = linkedOrderItem.getRelatedOne("FromOrderItem", false)>
                                 <#assign linkedOrderItemValueStatus = linkedOrderItemValue.getRelatedOne("StatusItem", false)>
                                 <#assign description = linkedOrderItem.getRelatedOne("OrderItemAssocType", false).getString("description")/>
-                                <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                                <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                     <td>&nbsp;</td>
                                     <td colspan="6">
                                         <span class="label">${uiLabelMap.OrderLinkedFromOrderItem}</span>&nbsp;(${description!})
@@ -398,7 +398,7 @@
                         <#assign linkedRequirements = orderItem.getRelated("OrderRequirementCommitment", null, null, false)!>
                         <#if linkedRequirements?has_content>
                             <#list linkedRequirements as linkedRequirement>
-                                <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                                <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                     <td>&nbsp;</td>
                                     <td colspan="6">
                                         <span class="label">${uiLabelMap.OrderLinkedToRequirement}</span>&nbsp;
@@ -411,7 +411,7 @@
                         <#-- show linked quote -->
                         <#assign linkedQuote = orderItem.getRelatedOne("QuoteItem", true)!>
                         <#if linkedQuote?has_content>
-                            <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                            <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                 <td>&nbsp;</td>
                                 <td colspan="6">
                                     <span class="label">${uiLabelMap.OrderLinkedToQuote}</span>&nbsp;
@@ -425,7 +425,7 @@
                         <#if orderItemAdjustments?? && orderItemAdjustments?has_content>
                             <#list orderItemAdjustments as orderItemAdjustment>
                                 <#assign adjustmentType = orderItemAdjustment.getRelatedOne("OrderAdjustmentType", true)>
-                                <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                                <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                     <td align="right" colspan="2">
                                         <span class="label">${uiLabelMap.OrderAdjustment}</span>&nbsp;${adjustmentType.get("description",locale)}
                                         ${StringUtil.wrapString(orderItemAdjustment.get("description",locale)!)}
@@ -436,7 +436,7 @@
                                             <a href="/catalog/control/EditProductPromo?productPromoId=${orderItemAdjustment.productPromoId}${StringUtil.wrapString(externalKeyParam)}"
                                                 >${orderItemAdjustment.getRelatedOne("ProductPromo", false).getString("promoName")}</a>
                                         </#if>
-                                        <#if orderItemAdjustment.orderAdjustmentTypeId == "SALES_TAX">
+                                        <#if "SALES_TAX" == orderItemAdjustment.orderAdjustmentTypeId>
                                             <#if orderItemAdjustment.primaryGeoId?has_content>
                                                 <#assign primaryGeo = orderItemAdjustment.getRelatedOne("PrimaryGeo", true)/>
                                                 <#if primaryGeo.geoName?has_content>
@@ -470,11 +470,11 @@
                         <#-- now show price info per line item -->
                         <#assign orderItemPriceInfos = orderReadHelper.getOrderItemPriceInfos(orderItem)>
                         <#if orderItemPriceInfos?? && orderItemPriceInfos?has_content>
-                            <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                            <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                 <td colspan="7">&nbsp;</td>
                             </tr>
                             <#list orderItemPriceInfos as orderItemPriceInfo>
-                                <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                                <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                     <td align="right" colspan="2">
                                         <span class="label">${uiLabelMap.ProductPriceRuleNameId}</span>&nbsp;[${orderItemPriceInfo.productPriceRuleId!}:${orderItemPriceInfo.productPriceActionSeqId!}]
                                         ${orderItemPriceInfo.description!}
@@ -491,7 +491,7 @@
                         <#assign orderItemSurveyResponses = Static["org.apache.ofbiz.order.order.OrderReadHelper"].getOrderItemSurveyResponse(orderItem)>
                         <#if orderItemSurveyResponses?? && orderItemSurveyResponses?has_content>
                             <#list orderItemSurveyResponses as survey>
-                                <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                                <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                     <td align="right" colspan="2">
                                         <span class="label">${uiLabelMap.CommonSurveys}</span>&nbsp;
                                         <a href="/content/control/ViewSurveyResponses?surveyResponseId=${survey.surveyResponseId}&amp;surveyId=${survey.surveyId}${StringUtil.wrapString(externalKeyParam)}"
@@ -503,7 +503,7 @@
                         </#if>
                         <#-- display the ship estimated/before/after dates -->
                         <#if orderItem.estimatedShipDate??>
-                            <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                            <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                 <td align="right" colspan="2">
                                     <span class="label">${uiLabelMap.OrderEstimatedShipDate}</span>&nbsp;${Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDate(orderItem.estimatedShipDate, "", locale, timeZone)!}
                                 </td>
@@ -511,7 +511,7 @@
                             </tr>
                         </#if>
                         <#if orderItem.estimatedDeliveryDate??>
-                            <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                            <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                 <td align="right" colspan="2">
                                     <span class="label">${uiLabelMap.OrderOrderQuoteEstimatedDeliveryDate}</span>&nbsp;${Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDate(orderItem.estimatedDeliveryDate, "", locale, timeZone)!}
                                 </td>
@@ -519,7 +519,7 @@
                             </tr>
                         </#if>
                         <#if orderItem.shipAfterDate??>
-                            <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                            <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                 <td align="right" colspan="2">
                                     <span class="label">${uiLabelMap.OrderShipAfterDate}</span>&nbsp;${Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDate(orderItem.shipAfterDate, "", locale, timeZone)!}
                                 </td>
@@ -527,7 +527,7 @@
                             </tr>
                         </#if>
                         <#if orderItem.shipBeforeDate??>
-                            <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                            <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                 <td align="right" colspan="2">
                                     <span class="label">${uiLabelMap.OrderShipBeforeDate}</span>&nbsp;${Static["org.apache.ofbiz.base.util.UtilFormatOut"].formatDate(orderItem.shipBeforeDate, "", locale, timeZone)!}
                                 </td>
@@ -540,7 +540,7 @@
                             <#list orderItemShipGroupAssocs as shipGroupAssoc>
                                 <#assign shipGroup = shipGroupAssoc.getRelatedOne("OrderItemShipGroup", false)>
                                 <#assign shipGroupAddress = shipGroup.getRelatedOne("PostalAddress", false)!>
-                                <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                                <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                     <td align="right" colspan="2">
                                         <span class="label">${uiLabelMap.OrderShipGroup}</span>&nbsp;[${shipGroup.shipGroupSeqId}]
                                         ${shipGroupAddress.address1?default("${uiLabelMap.OrderNotShipped}")}
@@ -555,7 +555,7 @@
                         <#-- now show inventory reservation info per line item -->
                         <#if orderItemShipGrpInvResList?? && orderItemShipGrpInvResList?has_content>
                             <#list orderItemShipGrpInvResList as orderItemShipGrpInvRes>
-                                <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                                <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                     <td align="right" colspan="2">
                                         <span class="label">${uiLabelMap.CommonInventory}</span>&nbsp;
                                         <a href="/facility/control/EditInventoryItem?inventoryItemId=${orderItemShipGrpInvRes.inventoryItemId}${StringUtil.wrapString(externalKeyParam)}"
@@ -582,7 +582,7 @@
                         <#assign orderShipments = orderItem.getRelated("OrderShipment", null, null, false)!>
                         <#if orderShipments?has_content>
                             <#list orderShipments as orderShipment>
-                                <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                                <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                     <td align="right" colspan="2">
                                         <span class="label">${uiLabelMap.OrderPlannedInShipment}</span>&nbsp;<a
                                             target="facility"
@@ -600,7 +600,7 @@
                         <#assign itemIssuances = itemIssuancesPerItem.get(orderItem.get("orderItemSeqId"))!>
                         <#if itemIssuances?has_content>
                             <#list itemIssuances as itemIssuance>
-                            <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                            <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                 <td align="right" colspan="2">
                                     <#if itemIssuance.shipmentId?has_content>
                                         <span class="label">${uiLabelMap.OrderIssuedToShipmentItem}</span>&nbsp;
@@ -621,7 +621,7 @@
                         <#-- now show item issuances (inventory item) per line item -->
                         <#if itemIssuances?has_content>
                             <#list itemIssuances as itemIssuance>
-                                <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                                <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                     <td align="right" colspan="2">
                                         <#if itemIssuance.inventoryItemId?has_content>
                                             <#assign inventoryItem = itemIssuance.getRelatedOne("InventoryItem", false)/>
@@ -646,7 +646,7 @@
                         <#assign shipmentReceipts = orderItem.getRelated("ShipmentReceipt", null, null, false)!>
                         <#if shipmentReceipts?has_content>
                             <#list shipmentReceipts as shipmentReceipt>
-                                <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                                <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                                     <td align="right" colspan="2">
                                         <#if shipmentReceipt.shipmentId?has_content>
                                             <span class="label">${uiLabelMap.OrderShipmentReceived}</span>&nbsp;
@@ -667,7 +667,7 @@
                             </#list>
                         </#if>
                         <#if orderItem.comments?has_content>
-                          <tr<#if itemClass == "1"> class="alternate-row"</#if>>
+                          <tr<#if "1" == itemClass> class="alternate-row"</#if>>
                             <td>&nbsp;</td>
                             <td>
                               <div class= "screenlet">
@@ -707,7 +707,7 @@
                             <td></td>
                           </tr>
                         </#if>
-                        <#if itemClass == "2">
+                        <#if "2" == itemClass>
                             <#assign itemClass = "1">
                         <#else>
                             <#assign itemClass = "2">
Index: applications/order/template/order/OrderNotes.ftl
===================================================================
--- applications/order/template/order/OrderNotes.ftl	(revision 1801264)
+++ applications/order/template/order/OrderNotes.ftl	(working copy)
@@ -47,7 +47,7 @@
                     ${note.noteInfo?replace("\n", "<br/>")}
                   </td>
                   <td align="right" valign="top" width="15%">
-                    <#if note.internalNote! == "N">
+                    <#if "N" == note.internalNote!>
                         ${uiLabelMap.OrderPrintableNote}
                         <form name="privateNotesForm_${note_index}" method="post" action="<@ofbizUrl>updateOrderNote</@ofbizUrl>">
                           <input type="hidden" name="orderId" value="${orderId}"/>
@@ -56,7 +56,7 @@
                           <a href="javascript:document.privateNotesForm_${note_index}.submit()" class="buttontext">${uiLabelMap.OrderNotesPrivate}</a>
                         </form>
                     </#if>
-                    <#if note.internalNote! == "Y">
+                    <#if "Y" == note.internalNote!>
                         ${uiLabelMap.OrderNotPrintableNote}
                         <form name="publicNotesForm_${note_index}" method="post" action="<@ofbizUrl>updateOrderNote</@ofbizUrl>">
                           <input type="hidden" name="orderId" value="${orderId}"/>
Index: applications/order/template/order/OrderPaymentInfo.ftl
===================================================================
--- applications/order/template/order/OrderPaymentInfo.ftl	(revision 1801264)
+++ applications/order/template/order/OrderPaymentInfo.ftl	(working copy)
@@ -41,7 +41,7 @@
   <div class="screenlet-body">
      <table class="basic-table" cellspacing='0'>
      <#assign orderTypeId = orderReadHelper.getOrderTypeId()>
-     <#if orderTypeId == "PURCHASE_ORDER">
+     <#if "PURCHASE_ORDER" == orderTypeId>
        <tr>
          <th>${uiLabelMap.AccountingPaymentID}</th>
          <th>${uiLabelMap.CommonTo}</th>
@@ -115,7 +115,7 @@
           <#assign paymentList = orderPaymentPreference.getRelated("Payment", null, null, false)>
           <#assign pmBillingAddress = {}>
           <#assign oppStatusItem = orderPaymentPreference.getRelatedOne("StatusItem", false)>
-          <#if outputted?default("false") == "true">
+          <#if "true" == outputted?default("false")>
             <tr><td colspan="4"><hr /></td></tr>
           </#if>
           <#assign outputted = "true">
@@ -123,11 +123,11 @@
           <#assign paymentMethod = orderPaymentPreference.getRelatedOne("PaymentMethod", false)!>
           <#if !paymentMethod?has_content>
             <#assign paymentMethodType = orderPaymentPreference.getRelatedOne("PaymentMethodType", false)>
-            <#if paymentMethodType.paymentMethodTypeId == "EXT_BILLACT">
+            <#if "EXT_BILLACT" == paymentMethodType.paymentMethodTypeId>
                 <#assign outputted = "false">
                 <#-- billing account -->
                 <#if billingAccount??>
-                  <#if outputted?default("false") == "true">
+                  <#if "true" == outputted?default("false")>
                     <tr><td colspan="4"><hr /></td></tr>
                   </#if>
                   <tr>
@@ -171,7 +171,7 @@
                     </td>
                   </tr>
                 </#if>
-            <#elseif paymentMethodType.paymentMethodTypeId == "FIN_ACCOUNT">
+            <#elseif "FIN_ACCOUNT" == paymentMethodType.paymentMethodTypeId>
               <#assign finAccount = orderPaymentPreference.getRelatedOne("FinAccount", false)!/>
               <#if (finAccount?has_content)>
                 <#assign gatewayResponses = orderPaymentPreference.getRelated("PaymentGatewayResponse", null, null, false)>
@@ -198,10 +198,10 @@
 
                       <#-- Authorize and Capture transactions -->
                       <div>
-                        <#if orderPaymentPreference.statusId != "PAYMENT_SETTLED">
+                        <#if "PAYMENT_SETTLED" != orderPaymentPreference.statusId>
                           <a href="/accounting/control/AuthorizeTransaction?orderId=${orderId!}&amp;orderPaymentPreferenceId=${orderPaymentPreference.orderPaymentPreferenceId}${StringUtil.wrapString(externalKeyParam)}" class="buttontext">${uiLabelMap.AccountingAuthorize}</a>
                         </#if>
-                        <#if orderPaymentPreference.statusId == "PAYMENT_AUTHORIZED">
+                        <#if "PAYMENT_AUTHORIZED" == orderPaymentPreference.statusId>
                           <a href="/accounting/control/CaptureTransaction?orderId=${orderId!}&amp;orderPaymentPreferenceId=${orderPaymentPreference.orderPaymentPreferenceId}${StringUtil.wrapString(externalKeyParam)}" class="buttontext">${uiLabelMap.AccountingCapture}</a>
                         </#if>
                       </div>
@@ -312,7 +312,7 @@
                 </#if>
             </#if>
           <#else>
-            <#if paymentMethod.paymentMethodTypeId! == "CREDIT_CARD">
+            <#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId!>
               <#assign gatewayResponses = orderPaymentPreference.getRelated("PaymentGatewayResponse", null, null, false)>
               <#assign creditCard = paymentMethod.getRelatedOne("CreditCard", false)!>
               <#if creditCard?has_content>
@@ -351,10 +351,10 @@
 
                       <#-- Authorize and Capture transactions -->
                       <div>
-                        <#if orderPaymentPreference.statusId != "PAYMENT_SETTLED">
+                        <#if "PAYMENT_SETTLED" != orderPaymentPreference.statusId>
                           <a href="/accounting/control/AuthorizeTransaction?orderId=${orderId!}&amp;orderPaymentPreferenceId=${orderPaymentPreference.orderPaymentPreferenceId}${StringUtil.wrapString(externalKeyParam)}" class="buttontext">${uiLabelMap.AccountingAuthorize}</a>
                         </#if>
-                        <#if orderPaymentPreference.statusId == "PAYMENT_AUTHORIZED">
+                        <#if "PAYMENT_AUTHORIZED" == orderPaymentPreference.statusId>
                           <a href="/accounting/control/CaptureTransaction?orderId=${orderId!}&amp;orderPaymentPreferenceId=${orderPaymentPreference.orderPaymentPreferenceId}${StringUtil.wrapString(externalKeyParam)}" class="buttontext">${uiLabelMap.AccountingCapture}</a>
                         </#if>
                       </div>
@@ -393,7 +393,7 @@
                   </#if>
                 </td>
               </tr>
-            <#elseif paymentMethod.paymentMethodTypeId! == "EFT_ACCOUNT">
+            <#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId!>
               <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount", false)>
               <#if eftAccount?has_content>
                 <#assign pmBillingAddress = eftAccount.getRelatedOne("PostalAddress", false)!>
@@ -448,7 +448,7 @@
                   </td>
                 </tr>
               </#if>
-            <#elseif paymentMethod.paymentMethodTypeId! == "GIFT_CARD">
+            <#elseif "GIFT_CARD" == paymentMethod.paymentMethodTypeId!>
               <#assign giftCard = paymentMethod.getRelatedOne("GiftCard", false)>
               <#if giftCard??>
                 <#assign pmBillingAddress = giftCard.getRelatedOne("PostalAddress", false)!>
Index: applications/order/template/order/OrderReportBody.fo.ftl
===================================================================
--- applications/order/template/order/OrderReportBody.fo.ftl	(revision 1801264)
+++ applications/order/template/order/OrderReportBody.fo.ftl	(working copy)
@@ -64,7 +64,7 @@
                         </fo:table-cell>
                         <fo:table-cell>
                             <fo:block>
-                                <#if orderHeader.orderTypeId == "PURCHASE_ORDER">
+                                <#if "PURCHASE_ORDER" == orderHeader.orderTypeId>
                                     <#if internalImageUrl?has_content>
                                         <fo:external-graphic src="${internalImageUrl}" overflow="hidden" content-width="100"/>
                                     </#if>
Index: applications/order/template/order/OrderReportConditions.fo.ftl
===================================================================
--- applications/order/template/order/OrderReportConditions.fo.ftl	(revision 1801264)
+++ applications/order/template/order/OrderReportConditions.fo.ftl	(working copy)
@@ -50,12 +50,12 @@
 
 
 <fo:block space-after="40pt"/>
-<#if orderHeader.getString("orderTypeId") == "SALES_ORDER">
+<#if "SALES_ORDER" == orderHeader.getString("orderTypeId")>
   <fo:block font-size="14pt" font-weight="bold" text-align="center">THANK YOU FOR YOUR PATRONAGE!</fo:block>
   <fo:block font-size="8pt">
     <#--    Here is a good place to put policies and return information. -->
   </fo:block>
-<#elseif orderHeader.getString("orderTypeId") == "PURCHASE_ORDER">
+<#elseif "PURCHASE_ORDER" == orderHeader.getString("orderTypeId")>
   <fo:block font-size="8pt">
     <#-- Here is a good place to put boilerplate terms and conditions for a purchase order. -->
   </fo:block>
Index: applications/order/template/order/OrderReportContactMechs.fo.ftl
===================================================================
--- applications/order/template/order/OrderReportContactMechs.fo.ftl	(revision 1801264)
+++ applications/order/template/order/OrderReportContactMechs.fo.ftl	(working copy)
@@ -18,7 +18,7 @@
 -->
 <#escape x as x?xml>
 
-<#if orderHeader.getString("orderTypeId") == "PURCHASE_ORDER">
+<#if "PURCHASE_ORDER" == orderHeader.getString("orderTypeId")>
     <#if supplierGeneralContactMechValueMap??>
         <#assign contactMech = supplierGeneralContactMechValueMap.contactMech>
         <fo:block font-weight="bold">${uiLabelMap.OrderPurchasedFrom}:</fo:block>
@@ -52,7 +52,7 @@
 <#list orderContactMechValueMaps as orderContactMechValueMap>
     <#assign contactMech = orderContactMechValueMap.contactMech>
     <#assign contactMechPurpose = orderContactMechValueMap.contactMechPurposeType>
-    <#if contactMech.contactMechTypeId == "POSTAL_ADDRESS">
+    <#if "POSTAL_ADDRESS" == contactMech.contactMechTypeId>
         <#assign postalAddress = orderContactMechValueMap.postalAddress>
         <fo:block font-weight="bold">${contactMechPurpose.get("description",locale)}:</fo:block>
         <fo:block text-indent="0.2in">
@@ -81,7 +81,7 @@
     <#list orderPaymentPreferences as orderPaymentPreference>
         <fo:block text-indent="0.2in">
             <#assign paymentMethodType = orderPaymentPreference.getRelatedOne("PaymentMethodType", false)!>
-            <#if (orderPaymentPreference?? && (orderPaymentPreference.getString("paymentMethodTypeId") == "CREDIT_CARD") && (orderPaymentPreference.getString("paymentMethodId")?has_content))>
+            <#if (orderPaymentPreference?? && ("CREDIT_CARD" == orderPaymentPreference.getString("paymentMethodTypeId")) && (orderPaymentPreference.getString("paymentMethodId")?has_content))>
                 <#assign creditCard = orderPaymentPreference.getRelatedOne("PaymentMethod", false).getRelatedOne("CreditCard", false)>
                 ${Static["org.apache.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)}
             <#else>
@@ -90,7 +90,7 @@
         </fo:block>
     </#list>
 </#if>
-<#if orderHeader.getString("orderTypeId") == "SALES_ORDER" && shipGroups?has_content>
+<#if "SALES_ORDER" == orderHeader.getString("orderTypeId") && shipGroups?has_content>
     <fo:block font-weight="bold">${uiLabelMap.OrderShipmentInformation}:</fo:block>
     <#list shipGroups as shipGroup>
         <fo:block text-indent="0.2in">
Index: applications/order/template/order/OrderShippingInfo.ftl
===================================================================
--- applications/order/template/order/OrderShippingInfo.ftl	(revision 1801264)
+++ applications/order/template/order/OrderShippingInfo.ftl	(working copy)
@@ -56,9 +56,9 @@
     </div>
     <div class="screenlet-body">
       <ul>
-        <#if security.hasEntityPermission("FACILITY", "_CREATE", session) && ((orderHeader.statusId == "ORDER_APPROVED") || (orderHeader.statusId == "ORDER_SENT"))>
+        <#if security.hasEntityPermission("FACILITY", "_CREATE", session) && (("ORDER_APPROVED" == orderHeader.statusId) || ("ORDER_SENT" == orderHeader.statusId))>
           <#-- Special shipment options -->
-          <#if orderHeader.orderTypeId == "SALES_ORDER" && backorderQuantity &lt; 1>
+          <#if "SALES_ORDER" == orderHeader.orderTypeId && backorderQuantity &lt; 1>
             <li>
             <form name="quickShipOrder" method="post" action="<@ofbizUrl>quickShipOrder</@ofbizUrl>">
               <input type="hidden" name="orderId" value="${orderId}"/>
@@ -65,7 +65,7 @@
             </form>
             <a href="javascript:document.quickShipOrder.submit()" class="buttontext">${uiLabelMap.OrderQuickShipEntireOrder}</a></li>
           <#else> <#-- PURCHASE_ORDER -->
-            <span class="label">&nbsp;<#if orderHeader.orderTypeId == "PURCHASE_ORDER">${uiLabelMap.ProductDestinationFacility}</#if></span>
+            <span class="label">&nbsp;<#if "PURCHASE_ORDER" == orderHeader.orderTypeId>${uiLabelMap.ProductDestinationFacility}</#if></span>
             <#if ownedFacilities?has_content>
               <#if !allShipments?has_content>
                   <li>
@@ -144,7 +144,7 @@
           <li><a href="<@ofbizUrl>OrderDeliveryScheduleInfo?orderId=${orderId}</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderViewEditDeliveryScheduleInfo}</a></li>
         </#if>
         <#if security.hasEntityPermission("ORDERMGR", "_RETURN", session)>
-          <#if orderHeader.statusId == "ORDER_COMPLETED" && returnableItems?has_content>
+          <#if "ORDER_COMPLETED" == orderHeader.statusId && returnableItems?has_content>
             <li>
             <form name="quickRefundOrder" method="post" action="<@ofbizUrl>quickRefundOrder</@ofbizUrl>">
               <input type="hidden" name="orderId" value="${orderId}"/>
@@ -178,7 +178,7 @@
             </li>
           </#if>
           <li><a href="<@ofbizUrl>loadCartFromOrder?${paramString}&amp;finalizeMode=init</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCreateAsNewOrder}</a></li>
-          <#if orderHeader.statusId == "ORDER_COMPLETED">
+          <#if "ORDER_COMPLETED" == orderHeader.statusId>
             <li><a href="<@ofbizUrl>loadCartForReplacementOrder?${paramString}</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCreateReplacementOrder}</a></li>
           </#if>
         </#if>
@@ -230,7 +230,7 @@
               <td><div>${quantityOrdered}</div></td>
               <td><div>${quantityNotAvailable}</div></td>
               <td>
-                  <#if !orderItem.statusId?exists || orderItem.statusId == "ITEM_CREATED" || orderItem.statusId == "ITEM_APPROVED">
+                  <#if !orderItem.statusId?exists || "ITEM_CREATED" == orderItem.statusId || "ITEM_APPROVED" == orderItem.statusId>
                   <div class="tabletext" id="display${index}">
                       <a name="display${index}" href="javascript: showEdit('edit', '${index}');" class="smallSubmit"> ${uiLabelMap.CommonEdit}</a>
                   </div>
@@ -258,11 +258,11 @@
               <td colspan="2">&nbsp;</td>
               <td colspan="2">
                   <div class="tabletext"> [${OISG.shipGroupSeqId}] <#if OISG.shipByDate?has_content>, ${uiLabelMap.OrderShipBeforeDate} : ${OISG.shipByDate?date}</#if></div>
-                      <#if orderType == "SALES_ORDER">
+                      <#if "SALES_ORDER" == orderType>
                           <#list orderShipments as orderShipment>
                   <div>${uiLabelMap.OrderPlannedInShipment} : </b><a target="facility" href="/facility/control/ViewShipment?shipmentId=${orderShipment.shipmentId!}&externalLoginKey=${externalLoginKey}" class="buttontext" style="font-size: xx-small;">${orderShipment.shipmentId!}</a>:${orderShipment.shipmentItemSeqId!} - ${orderShipment.quantity!}</div>
                           </#list>
-                      <#elseif orderType == "PURCHASE_ORDER">
+                      <#elseif "PURCHASE_ORDER" == orderType>
                           <#list orderShipments as orderShipment>
                               <#if orderShipment.quantity?has_content & orderShipment.quantity!=0.0 >
                   <div>${uiLabelMap.OrderPlannedInReceive} : </b><a target="facility" href="/facility/control/ViewReceiveShipment?shipmentId=${orderShipment.shipmentId!}&externalLoginKey=${externalLoginKey}" class="buttontext" style="font-size: xx-small;">${orderShipment.shipmentId!}</a>:${orderShipment.shipmentItemSeqId!} - ${orderShipment.quantity!}</div>
@@ -287,7 +287,7 @@
                   </#list>
               <input type="hidden" name="_rowCount" value="${rowCount}"/>
               </form>
-                  <#if !orderItem.statusId?exists || orderItem.statusId == "ITEM_CREATED" || orderItem.statusId == "ITEM_APPROVED" && (orderHeader.statusId != "ORDER_SENT" && orderHeader.statusId != "ORDER_COMPLETED" && orderHeader.statusId != "ORDER_REJECTED" && orderHeader.statusId != "ORDER_CANCELLED")>
+                  <#if !orderItem.statusId?exists || "ITEM_CREATED" == orderItem.statusId || "ITEM_APPROVED" == orderItem.statusId && ("ORDER_SENT" != orderHeader.statusId && "ORDER_COMPLETED" != orderHeader.statusId && "ORDER_REJECTED" != orderHeader.statusId && "ORDER_CANCELLED" != orderHeader.statusId)>
           <tr>
               <form method="post" action="<@ofbizUrl>AddOrderItemShipGroupAssoc?view=OISGA</@ofbizUrl>" name="addOISGForm${index}"/>
               <input type="hidden" name="editQuantity" value="edit"/>
@@ -386,7 +386,7 @@
                   </tr>
   
                   <#-- the setting of shipping method is only supported for sales orders at this time -->
-                  <#if orderHeader.orderTypeId == "SALES_ORDER">
+                  <#if "SALES_ORDER" == orderHeader.orderTypeId>
                     <tr>
                       <td align="right" valign="top" width="15%">
                           <span class="label">&nbsp;<b>${uiLabelMap.CommonMethod}</b></span>
@@ -626,7 +626,7 @@
               <td width="5">&nbsp;</td>
               <td valign="top" width="80%">
                 <div>
-                  <#if shipGroup.maySplit?upper_case == "N">
+                  <#if "N" == shipGroup.maySplit?upper_case>
                       ${uiLabelMap.FacilityWaitEntireOrderReady}
                       <#if security.hasEntityPermission("ORDERMGR", "_UPDATE", session)>
                         <#if orderHeader.statusId != "ORDER_COMPLETED" && orderHeader.statusId != "ORDER_CANCELLED">
@@ -777,7 +777,7 @@
          </#if>
   
          <#-- shipment actions -->
-         <#if security.hasEntityPermission("ORDERMGR", "_UPDATE", session) && ((orderHeader.statusId == "ORDER_CREATED") || (orderHeader.statusId == "ORDER_APPROVED") || (orderHeader.statusId == "ORDER_SENT"))>
+         <#if security.hasEntityPermission("ORDERMGR", "_UPDATE", session) && (("ORDER_CREATED" == orderHeader.statusId) || ("ORDER_APPROVED" == orderHeader.statusId) || ("ORDER_SENT" == orderHeader.statusId))>
   
   
            <#-- Manual shipment options -->
@@ -784,9 +784,9 @@
            <tr><td colspan="3"><hr /></td></tr>
            <tr>
               <td colspan="3" valign="top" width="100%" align="center">
-               <#if orderHeader.orderTypeId == "SALES_ORDER">
+               <#if "SALES_ORDER" == orderHeader.orderTypeId>
                  <#if !shipGroup.supplierPartyId?has_content>
-                   <#if orderHeader.statusId == "ORDER_APPROVED">
+                   <#if "ORDER_APPROVED" == orderHeader.statusId>
                  <a href="/facility/control/PackOrder?facilityId=${storeFacilityId!}&amp;orderId=${orderId}&amp;shipGroupSeqId=${shipGroup.shipGroupSeqId}${StringUtil.wrapString(externalKeyParam)}" class="buttontext">${uiLabelMap.OrderPackShipmentForShipGroup}</a>
                    <br />
                    </#if>
Index: applications/order/template/order/Transitions.ftl
===================================================================
--- applications/order/template/order/Transitions.ftl	(revision 1801264)
+++ applications/order/template/order/Transitions.ftl	(working copy)
@@ -30,7 +30,7 @@
       <tr>
         <td>
           <!-- Suspended Processes -->
-          <#if workEffortStatus == "WF_SUSPENDED">
+          <#if "WF_SUSPENDED" == workEffortStatus>
             <form action="<@ofbizUrl>releasehold</@ofbizUrl>" method="post" name="activityForm">
               <input type="hidden" name="workEffortId" value="${workEffortId}" />
               <table class="basic-table" cellspacing='0'>
@@ -44,7 +44,7 @@
             </form>
           </#if>
           <!-- Active Processes -->
-          <#if workEffortStatus == "WF_RUNNING">
+          <#if "WF_RUNNING" == workEffortStatus>
             <form action="<@ofbizUrl>holdorder</@ofbizUrl>" method="post" name="activityForm">
               <input type="hidden" name="workEffortId" value="${workEffortId}" />
               <table class="basic-table" cellspacing='0'>
Index: applications/order/template/quote/QuoteReportBody.fo.ftl
===================================================================
--- applications/order/template/quote/QuoteReportBody.fo.ftl	(revision 1801264)
+++ applications/order/template/quote/QuoteReportBody.fo.ftl	(working copy)
@@ -111,7 +111,7 @@
                             </fo:table-row>
                         </#list>
 
-                        <#if rowColor == "white">
+                        <#if "white" == rowColor>
                             <#assign rowColor = "#D4D0C8">
                         <#else>
                             <#assign rowColor = "white">
Index: applications/order/template/quote/ViewQuoteItemInfo.ftl
===================================================================
--- applications/order/template/quote/ViewQuoteItemInfo.ftl	(revision 1801264)
+++ applications/order/template/quote/ViewQuoteItemInfo.ftl	(working copy)
@@ -19,7 +19,7 @@
 <div class="screenlet">
     <div class="screenlet-title-bar">
         <div class="boxlink">
-            <#if maySelectItems?default("N") == "Y">
+            <#if "Y" == maySelectItems?default("N")>
                 <a href="javascript:document.addCommonToCartForm.add_all.value='true';document.addCommonToCartForm.submit()" class="buttontext">${uiLabelMap.OrderAddAllToCart}</a>
             </#if>
         </div>
@@ -68,7 +68,7 @@
                 <tr <#if alt_row>class="alternate-row" </#if>>
                     <td >
                         <div>
-                        <#if showQuoteManagementLinks?? && quoteItem.isPromo?default("N") == "N" && quote.statusId=="QUO_CREATED">
+                        <#if showQuoteManagementLinks?? && "N" == quoteItem.isPromo?default("N") && "QUO_CREATED" == quote.statusId>
                             <a href="<@ofbizUrl>EditQuoteItem?quoteId=${quoteItem.quoteId}&amp;quoteItemSeqId=${quoteItem.quoteItemSeqId}</@ofbizUrl>" class="buttontext">${quoteItem.quoteItemSeqId}</a>
                         <#else>
                             ${quoteItem.quoteItemSeqId}
Index: applications/order/template/reports/OrderPurchaseReportPayment.fo.ftl
===================================================================
--- applications/order/template/reports/OrderPurchaseReportPayment.fo.ftl	(revision 1801264)
+++ applications/order/template/reports/OrderPurchaseReportPayment.fo.ftl	(working copy)
@@ -104,7 +104,7 @@
                             </fo:table-cell>
                         </fo:table-row>
                         <#-- toggle the row color -->
-                        <#if rowColor == "white">
+                        <#if "white" == rowColor>
                             <#assign rowColor = "#D4D0C8">
                         <#else>
                             <#assign rowColor = "white">
Index: applications/order/template/reports/OrderPurchaseReportProduct.fo.ftl
===================================================================
--- applications/order/template/reports/OrderPurchaseReportProduct.fo.ftl	(revision 1801264)
+++ applications/order/template/reports/OrderPurchaseReportProduct.fo.ftl	(working copy)
@@ -114,7 +114,7 @@
                             </fo:table-cell>
                         </fo:table-row>
                         <#-- toggle the row color -->
-                        <#if rowColor == "white">
+                        <#if "white" == rowColor>
                             <#assign rowColor = "#D4D0C8">
                         <#else>
                             <#assign rowColor = "white">
Index: applications/order/template/reports/PurchasesByOrganizationReport.fo.ftl
===================================================================
--- applications/order/template/reports/PurchasesByOrganizationReport.fo.ftl	(revision 1801264)
+++ applications/order/template/reports/PurchasesByOrganizationReport.fo.ftl	(working copy)
@@ -79,7 +79,7 @@
                             </fo:table-cell>
                         </fo:table-row>
                         <#-- toggle the row color -->
-                        <#if rowColor == "white">
+                        <#if "white" == rowColor>
                             <#assign rowColor = "#D4D0C8">
                         <#else>
                             <#assign rowColor = "white">
Index: applications/order/template/reports/SalesByStoreReport.fo.ftl
===================================================================
--- applications/order/template/reports/SalesByStoreReport.fo.ftl	(revision 1801264)
+++ applications/order/template/reports/SalesByStoreReport.fo.ftl	(working copy)
@@ -91,7 +91,7 @@
                             </fo:table-cell>
                         </fo:table-row>
                         <#-- toggle the row color -->
-                        <#if rowColor == "white">
+                        <#if "white" == rowColor>
                             <#assign rowColor = "#D4D0C8">
                         <#else>
                             <#assign rowColor = "white">
Index: applications/order/template/return/ReturnItemInc.ftl
===================================================================
--- applications/order/template/return/ReturnItemInc.ftl	(revision 1801264)
+++ applications/order/template/return/ReturnItemInc.ftl	(working copy)
@@ -59,7 +59,7 @@
       <#assign rowCount = 0>
       <#assign alt_row = false>
       <#list returnableItems.keySet() as orderItem>
-        <#if orderItem.getEntityName() == "OrderAdjustment">
+        <#if "OrderAdjustment" == orderItem.getEntityName()>
             <#-- this is an order item adjustment -->
             <#assign returnAdjustmentType = returnItemTypeMap.get(orderItem.get("orderAdjustmentTypeId"))/>
             <#assign adjustmentType = orderItem.getRelatedOne("OrderAdjustmentType", false)/>
@@ -79,7 +79,7 @@
               <td>
                 <select name="returnTypeId_o_${rowCount}">
                   <#list returnTypes as type>
-                  <option value="${type.returnTypeId}" <#if type.returnTypeId == "RTN_REFUND">selected="selected"</#if>>${type.get("description",locale)?default(type.returnTypeId)}</option>
+                  <option value="${type.returnTypeId}" <#if "RTN_REFUND" == type.returnTypeId>selected="selected"</#if>>${type.get("description",locale)?default(type.returnTypeId)}</option>
                   </#list>
                 </select>
               </td>
@@ -124,7 +124,7 @@
               <td>
                 <#if orderItem.productId??>
                   <#assign product = orderItem.getRelatedOne("Product", false)/>
-                  <#if product.productTypeId == "ASSET_USAGE_OUT_IN">
+                  <#if "ASSET_USAGE_OUT_IN" == product.productTypeId>
                     <input type="text" size="8" name="returnPrice_o_${rowCount}" value="0.00"/>
                   <#else>
                     <input type="text" size="8" name="returnPrice_o_${rowCount}" value="${returnableItems.get(orderItem).get("returnablePrice")?string("##0.00")}"/>
@@ -196,7 +196,7 @@
           <td>
             <select name="returnTypeId_o_${rowCount}">
               <#list returnTypes as type>
-              <option value="${type.returnTypeId}" <#if type.returnTypeId == "RTN_REFUND">selected="selected"</#if>>${type.get("description",locale)?default(type.returnTypeId)}</option>
+              <option value="${type.returnTypeId}" <#if "RTN_REFUND" == type.returnTypeId>selected="selected"</#if>>${type.get("description",locale)?default(type.returnTypeId)}</option>
               </#list>
             </select>
           </td>
@@ -233,7 +233,7 @@
       <td>
         <select name="returnTypeId_o_${rowCount}">
           <#list returnTypes as type>
-          <option value="${type.returnTypeId}" <#if type.returnTypeId == "RTN_REFUND">selected="selected"</#if>>${type.get("description",locale)?default(type.returnTypeId)}</option>
+          <option value="${type.returnTypeId}" <#if "RTN_REFUND" == type.returnTypeId>selected="selected"</#if>>${type.get("description",locale)?default(type.returnTypeId)}</option>
           </#list>
         </select>
       </td>
Index: applications/order/template/return/ReturnItems.ftl
===================================================================
--- applications/order/template/return/ReturnItems.ftl	(revision 1801264)
+++ applications/order/template/return/ReturnItems.ftl	(working copy)
@@ -69,12 +69,12 @@
 </#macro>
 
     <#if returnHeader?has_content>
-      <#if returnHeader.destinationFacilityId?has_content && returnHeader.statusId == "RETURN_ACCEPTED" && returnHeader.returnHeaderTypeId?starts_with("CUSTOMER_")>
+      <#if returnHeader.destinationFacilityId?has_content && "RETURN_ACCEPTED" == returnHeader.statusId && returnHeader.returnHeaderTypeId?starts_with("CUSTOMER_")>
         <#list returnShipmentIds as returnShipmentId>
           <a href="/facility/control/ViewShipment?shipmentId=${returnShipmentId.shipmentId}${StringUtil.wrapString(externalKeyParam)}" class="buttontext">${uiLabelMap.ProductShipmentId} ${returnShipmentId.shipmentId}</a>
           <a href="/facility/control/ReceiveReturn?facilityId=${returnHeader.destinationFacilityId}&amp;returnId=${returnHeader.returnId!}&amp;shipmentId=${returnShipmentId.shipmentId}${StringUtil.wrapString(externalKeyParam)}" class="buttontext">${uiLabelMap.OrderReceiveReturn}</a>
         </#list>
-      <#elseif returnHeader.statusId == "SUP_RETURN_ACCEPTED" && returnHeader.returnHeaderTypeId == "VENDOR_RETURN">
+      <#elseif "SUP_RETURN_ACCEPTED" == returnHeader.statusId && "VENDOR_RETURN" == returnHeader.returnHeaderTypeId>
          <#if returnShipmentIds?has_content>
            <#list returnShipmentIds as returnShipmentId>
              <a href="/facility/control/ViewShipment?shipmentId=${returnShipmentId.shipmentId}${StringUtil.wrapString(externalKeyParam)}" class="buttontext">${uiLabelMap.ProductShipmentId} ${returnShipmentId.shipmentId}</a>
@@ -234,7 +234,7 @@
                     </#if></div></td>
                 <#if (readOnly)>
                   <td>
-                  <#if returnHeader.statusId == "RETURN_COMPLETED" || returnHeader.statusId == "SUP_RETURN_COMPLETED">
+                  <#if "RETURN_COMPLETED" == returnHeader.statusId || "SUP_RETURN_COMPLETED" == returnHeader.statusId>
                     <#assign itemResp = item.getRelatedOne("ReturnItemResponse", false)!>
                     <#if itemResp?has_content>
                       <#if itemResp.paymentId?has_content>
@@ -252,7 +252,7 @@
                   </#if>
                 </td>
                 </#if>
-                <#if returnHeader.statusId == "RETURN_REQUESTED" || returnHeader.statusId == "SUP_RETURN_REQUESTED">
+                <#if "RETURN_REQUESTED" == returnHeader.statusId || "SUP_RETURN_REQUESTED" == returnHeader.statusId>
                   <td align='right'><a href='javascript:document.removeReturnItem_${item_index}.submit()' class='buttontext'>${uiLabelMap.CommonRemove}</a></td>
                 <#else>
                   <td>&nbsp;</td>
@@ -315,7 +315,7 @@
             </form>
           </#list>
         </#if>
-        <#if (returnHeader.statusId == "RETURN_REQUESTED" || returnHeader.statusId == "SUP_RETURN_REQUESTED") && (rowCount > 0)>
+        <#if ("RETURN_REQUESTED" == returnHeader.statusId || "SUP_RETURN_REQUESTED" == returnHeader.statusId) && (rowCount > 0)>
         <br />
         <form name="acceptReturn" method="post" action="<@ofbizUrl>/updateReturn</@ofbizUrl>">
           <#if returnHeader.returnHeaderTypeId?starts_with("CUSTOMER_")>
@@ -330,7 +330,7 @@
         </form>
         </#if>
 
-        <#if returnHeader.statusId == "RETURN_REQUESTED" || returnHeader.statusId == "SUP_RETURN_REQUESTED">
+        <#if "RETURN_REQUESTED" == returnHeader.statusId || "SUP_RETURN_REQUESTED" == returnHeader.statusId>
         <br />
         <form name="returnItems" method="post" action="<@ofbizUrl>returnItems</@ofbizUrl>">
           <input type="hidden" name="returnId" value="${returnId}" />
Index: applications/order/template/setup/PaymentSetup.ftl
===================================================================
--- applications/order/template/setup/PaymentSetup.ftl	(revision 1801264)
+++ applications/order/template/setup/PaymentSetup.ftl	(working copy)
@@ -56,7 +56,7 @@
               </tr>
               <#if paymentSetups?has_content>
                 <#list paymentSetups as paymentSetting>
-                  <#if rowStyle?? && rowStyle == "alternate-row">
+                  <#if rowStyle?? && "alternate-row" == rowStyle>
                     <#assign rowStyle = "alternate-rowSelected">
                   <#else>
                     <#assign rowStyle = "alternate-row">
Index: applications/order/template/task/OrderTaskList.ftl
===================================================================
--- applications/order/template/task/OrderTaskList.ftl	(revision 1801264)
+++ applications/order/template/task/OrderTaskList.ftl	(working copy)
@@ -77,7 +77,7 @@
                                   <#assign partyId = "_NA_">
                                   <#if placingParty?has_content>
                                     <#assign partyId = placingParty.partyId>
-                                    <#if placingParty.getEntityName() == "Person">
+                                    <#if "Person" == placingParty.getEntityName()>
                                       <#if placingParty.lastName??>
                                         ${placingParty.lastName}<#if placingParty.firstName??>, ${placingParty.firstName}</#if>
                                       <#else>
@@ -205,7 +205,7 @@
                               <input type="hidden" name="orderId" value="${task.orderId}" />
                               <input type="hidden" name="workEffortId" value="${task.workEffortId}" />
                               <input type="hidden" name="taskStatus" value="${task.currentStatusId}" />
-                              <#if task.statusId?? && task.statusId == "CAL_SENT">
+                              <#if task.statusId?? && "CAL_SENT" == task.statusId>
                                 <input type="hidden" name="partyId" value="${userLogin.partyId}" />
                                 <input type="hidden" name="roleTypeId" value="${task.roleTypeId}" />
                                 <input type="hidden" name="fromDate" value="${task.get("fromDate").toString()}" />
@@ -250,7 +250,7 @@
                                   <div>${actualStartDate}</div>
                                 </td>
                                 <td>
-                                  <#if task.wepaPartyId == "_NA_">
+                                  <#if "_NA_" == task.wepaPartyId>
                                     <div>N/A</div>
                                   <#else>
                                     <a href="${customerDetailLink}${task.wepaPartyId}${StringUtil.wrapString(externalKeyParam)}" target="partymgr" class="buttontext">${task.wepaPartyId}</a>
@@ -263,7 +263,7 @@
                                     ${Static["org.apache.ofbiz.order.task.TaskWorker"].getPrettyStatus(task)}
                                   </a>
                                 </td>
-                                <#if task.statusId?? && task.statusId == "CAL_SENT">
+                                <#if task.statusId?? && "CAL_SENT" == task.statusId>
                                   <td align="right"><input type="checkbox" name="delegate" value="true" checked="checked" /></td>
                                 <#else>
                                   <td align="right"><input type="checkbox" name="delegate" value="true" /></td>
